#6B2397#6B2397
#6B2397 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.180 H 308.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).
Color values
| HEX | #6B2397 |
|---|---|
| RGB | rgb(107, 35, 151) |
| HSL | hsl(277, 62%, 36%) |
| HSV | hsv(277, 77%, 59%) |
| CMYK | cmyk(29.1%, 76.8%, 0%, 40.8%) |
| CIE-LAB | lab(30.79, 50.88, -49.32) |
| CIE-LCH | lch(30.79, 70.86, 315.89°) |
| OKLab | oklab(42.62% 0.1126 -0.14) |
| OKLCH | oklch(42.62% 0.18 308.8) |
| XYZ | xyz(12.2492, 6.5624, 29.8936) |
| Luminance | 0.0656 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.25
Purple (survey)
#7E1E9C
ΔE00 3.49
Purple
#800080
ΔE00 7.18
Darkmagenta
#8B008B
ΔE00 7.37
Indigo
#4B0082
ΔE00 7.73
Darkish Purple
#751973
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B2397 #4F9723
analogous
#312397 #6B2397 #972389
triadic
#6B2397 #976B23 #23976B
tetradic
#6B2397 #973123 #4F9723 #238997
square
#6B2397 #973123 #4F9723 #238997
split-complementary
#6B2397 #899723 #239731
monochromatic
#250C34 #481765 #6B2397 #8E2FC9 #A95BD9
Accessibility & contrast
On white
9.08
#6B2397 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#6B2397 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B2397
9.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B2397 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B2397 | 1.00 | 9.08 | 2.31 | 9.08 |
| #FFFFFF | 9.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#643F5C
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #6b2397; /* rgb */ color: rgb(107, 35, 151); /* oklch */ color: oklch(42.6% 0.180 308.8);
Tailwind
colors: {
custom: {
50: '#9a66b6',
500: '#6b2397',
950: '#000000',
},
}SCSS
$custom: #6b2397; $custom-light: #9a66b6; $custom-dark: #000000;
JSON
{
"hex": "#6b2397",
"rgb": {
"r": 107,
"g": 35,
"b": 151
},
"hsl": {
"h": 277.241,
"s": 62.366,
"l": 36.471
},
"oklch": {
"l": 0.42621,
"c": 0.17961,
"h": 308.8
},
"luminance": 0.06562
}Semantic roles & 50–950 ramp
primary
#6B2397
secondary
#7FBE58
accent
#E54280
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80