Skip to content

#6c0ccc

a dark, electric violet · cool · closest name: Dark Violet

RGB
108, 12, 204
HSL
270°, 89%, 42%
CMYK
47, 94, 0, 20
Luminance
0.0781

At a glance

Every number on this page in one read: what #6c0ccc is made of, how bright it looks, and which way it leans.

Hex
#6c0ccc
Hue
270°
violet
Saturation
89%
electric
Lightness
42%
dark
Brightness
80%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0781
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.20:1
Closest name
Dark Violet
ΔE2000 6.5
Where it sits
Hue270° of 360°
Saturation89%
Lightness42%
Temperature
Warm ← → Cool67% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#6c0ccc
RGBrgb(108, 12, 204)
HSLhsl(270, 89%, 42%)
CMYKcmyk(47%, 94%, 0%, 20%)
LABlab(33.6 69.2 -76.4)
LCHlch(33.6 103.0 312.2)
OKLCHoklch(0.460 0.244 296.4)
Decimal7081164
Display P3color(display-p3 0.424 0.047 0.800)

Copy-ready code

/* CSS */
color: #6c0ccc;
background-color: #6c0ccc;
/* Tailwind (arbitrary) */
class="text-[#6c0ccc] bg-[#6c0ccc]"
/* SCSS */
$brand: #6c0ccc;
/* SwiftUI */
Color(red: 0.424, green: 0.047, blue: 0.800)
/* Android */
Color.parseColor("#6c0ccc")
/* Flutter */
Color(0xFF6C0CCC)
/* Python / OpenCV (BGR) */
(204, 12, 108)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #6c0ccc · 8.20:1
Use #ffffffAAA at every size.
Aa
White text · 8.20:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.56:1
AA fail · AA large fail · AAA fail
Reading the other direction: #6c0ccc as text scores 8.20:1 on white and 2.56:1 on black.

Accessibility — WCAG contrast

Aa
#6c0ccc on white: 8.20:1
AA ✓ pass · AA-large · AAA
Aa
#6c0ccc on black: 2.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0050D1
deuteranopia · #004CC9
tritanopia · #505078

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #6c0ccc is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F2FD
#F0E5FB
#DEC4F8
#C795F9
#AB60F6
#8F2BF3
#7A0EE7
#6c0ccc
#52099A
#3D0B6F
#260746
Base = 700Lightest = 50 · #F7F2FDDarkest = 950 · #260746
:root {
  --brand-50: #F7F2FD;
  --brand-100: #F0E5FB;
  --brand-200: #DEC4F8;
  --brand-300: #C795F9;
  --brand-400: #AB60F6;
  --brand-500: #8F2BF3;
  --brand-600: #7A0EE7;
  --brand-700: #6c0ccc;
  --brand-800: #52099A;
  --brand-900: #3D0B6F;
  --brand-950: #260746;
  --brand: #6c0ccc;
  --brand-ink: #ffffff;
}

Colors that work with #6c0ccc

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F7F4FA
Tinted page background
Border#D6C0ED
Hairlines and dividers
Muted text#734B9B
Captions on the surface
Accent#95C408
Second voice, not a rival
Dark variant#400778
Hover, pressed, headers
Light variant#F2E7FE
Selected rows, tints
Dark surface#1C1424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #6c0ccc

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#6CCC0C
Analogous left#0C0CCC
Analogous right#CC0CCC
Split-complement 1#CCCC0C
Split-complement 2#0CCC0C
Triadic 1#CC6C0C
Triadic 2#0CCC6C
Tetradic#CC0C0C

RGB percentages

Red42.4%
Green4.7%
Blue80.0%

CMYK percentages

Cyan47.1%
Magenta94.1%
Yellow0.0%
Key (black)20.0%

Color previews

#6c0ccc text on a black background

contrast 2.56:1

Card sample

#6c0ccc text on a white background

contrast 8.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6c0ccc;
Background color
Panel with #6c0ccc background
background-color: #6c0ccc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6c0ccc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(108, 12, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 12, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c0ccc;
background: linear-gradient(135deg, #6c0ccc, #CC0CAC);

Monochromatic scale

Palettes built from #6c0ccc

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#6c0ccc in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#6c0ccc, answered

What color is #6c0ccc?

#6c0ccc is a dark electric violet, closest to Dark Violet (ΔE2000 6.5). It sits at 270° on the hue wheel with 89% saturation and 42% lightness, which reads as cool.

What is the RGB value of #6c0ccc?

rgb(108, 12, 204) — 108 red, 12 green and 204 blue out of 255, or 42.4% / 4.7% / 80% by channel.

Is #6c0ccc a light or a dark color?

It is a dark color. Relative luminance is 0.0781 and perceived brightness is 36%, so white text on it reaches 8.20:1.

Should I use black or white text on #6c0ccc?

White. It scores 8.20:1 against #6c0ccc, versus 2.56:1 for black — AAA at any size.

What is the complementary color of #6c0ccc?

#6CCC0C sits directly opposite on the wheel. Softer options are the split-complements #CCCC0C and #0CCC0C, which give the same contrast with far less vibration.

What colors go well with #6c0ccc?

For interface work: #F7F4FA as the surface, #D6C0ED for borders, #734B9B for secondary text, #95C408 as an accent and #400778 for hover and pressed states. For a palette, the analogous pair #0C0CCC and #CC0CCC stays calm, while #6CCC0C is the loudest partner.

What is #6c0ccc in CMYK for printing?

cmyk(47%, 94%, 0%, 20%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #6c0ccc warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B30CCC; nudged cooler, #240ACE.

Work with #6c0ccc in the Color Lab