#6C2397#6C2397
#6C2397 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.180 H 309.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).
Color values
| HEX | #6C2397 |
|---|---|
| RGB | rgb(108, 35, 151) |
| HSL | hsl(278, 62%, 36%) |
| HSV | hsv(278, 77%, 59%) |
| CMYK | cmyk(28.5%, 76.8%, 0%, 40.8%) |
| CIE-LAB | lab(30.94, 51.07, -49.07) |
| CIE-LCH | lch(30.94, 70.82, 316.14°) |
| OKLab | oklab(42.76% 0.114 -0.1392) |
| OKLCH | oklch(42.76% 0.18 309.3) |
| XYZ | xyz(12.3702, 6.6248, 29.8992) |
| Luminance | 0.0663 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.30
Purple (survey)
#7E1E9C
ΔE00 3.30
Purple
#800080
ΔE00 7.04
Darkmagenta
#8B008B
ΔE00 7.19
Indigo
#4B0082
ΔE00 7.87
Darkish Purple
#751973
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6C2397 #4E9723
analogous
#322397 #6C2397 #972388
triadic
#6C2397 #976C23 #23976C
tetradic
#6C2397 #973223 #4E9723 #238897
square
#6C2397 #973223 #4E9723 #238897
split-complementary
#6C2397 #889723 #239732
monochromatic
#250C34 #481765 #6C2397 #902FC9 #AA5BD9
Accessibility & contrast
On white
9.03
#6C2397 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#6C2397 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6C2397
9.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6C2397 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6C2397 | 1.00 | 9.03 | 2.33 | 9.03 |
| #FFFFFF | 9.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#663F5C
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #6c2397; /* rgb */ color: rgb(108, 35, 151); /* oklch */ color: oklch(42.8% 0.180 309.3);
Tailwind
colors: {
custom: {
50: '#9b66b6',
500: '#6c2397',
950: '#000000',
},
}SCSS
$custom: #6c2397; $custom-light: #9b66b6; $custom-dark: #000000;
JSON
{
"hex": "#6c2397",
"rgb": {
"r": 108,
"g": 35,
"b": 151
},
"hsl": {
"h": 277.759,
"s": 62.366,
"l": 36.471
},
"oklch": {
"l": 0.42756,
"c": 0.1799,
"h": 309.3
},
"luminance": 0.06625
}Semantic roles & 50–950 ramp
primary
#6C2397
secondary
#7EBE58
accent
#E5427F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80