#6B229B#6B229B
#6B229B is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.185 H 307.6°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).
Color values
| HEX | #6B229B |
|---|---|
| RGB | rgb(107, 34, 155) |
| HSL | hsl(276, 64%, 37%) |
| HSV | hsv(276, 78%, 61%) |
| CMYK | cmyk(31%, 78.1%, 0%, 39.2%) |
| CIE-LAB | lab(30.96, 52.18, -51.47) |
| CIE-LCH | lch(30.96, 73.29, 315.39°) |
| OKLab | oklab(42.84% 0.1126 -0.1463) |
| OKLCH | oklch(42.84% 0.185 307.6) |
| XYZ | xyz(12.5506, 6.6366, 31.6238) |
| Luminance | 0.0664 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.32
Purple (survey)
#7E1E9C
ΔE00 3.62
Purple
#800080
ΔE00 7.64
Darkmagenta
#8B008B
ΔE00 7.71
Indigo
#4B0082
ΔE00 7.78
Purple Blue
#5D21D0
ΔE00 8.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B229B #529B22
analogous
#2E229B #6B229B #9B228F
triadic
#6B229B #9B6B22 #229B6B
tetradic
#6B229B #9B2E22 #529B22 #228F9B
square
#6B229B #9B2E22 #529B22 #228F9B
split-complementary
#6B229B #8F9B22 #229B2E
monochromatic
#260C37 #481769 #6B229B #8E2DCD #A95CDB
Accessibility & contrast
On white
9.02
#6B229B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#6B229B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B229B
9.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B229B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B229B | 1.00 | 9.02 | 2.33 | 9.02 |
| #FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#63405E
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #6b229b; /* rgb */ color: rgb(107, 34, 155); /* oklch */ color: oklch(42.8% 0.185 307.6);
Tailwind
colors: {
custom: {
50: '#9a66b9',
500: '#6b229b',
950: '#000000',
},
}SCSS
$custom: #6b229b; $custom-light: #9a66b9; $custom-dark: #000000;
JSON
{
"hex": "#6b229b",
"rgb": {
"r": 107,
"g": 34,
"b": 155
},
"hsl": {
"h": 276.198,
"s": 64.021,
"l": 37.059
},
"oklch": {
"l": 0.42843,
"c": 0.18461,
"h": 307.6
},
"luminance": 0.06636
}Semantic roles & 50–950 ramp
primary
#6B229B
secondary
#82C059
accent
#E74183
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81