#6B22A2#6B22A2
#6B22A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.192 H 305.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).
Color values
| HEX | #6B22A2 |
|---|---|
| RGB | rgb(107, 34, 162) |
| HSL | hsl(274, 65%, 38%) |
| HSV | hsv(274, 79%, 64%) |
| CMYK | cmyk(34%, 79%, 0%, 36.5%) |
| CIE-LAB | lab(31.53, 53.77, -54.81) |
| CIE-LCH | lch(31.53, 76.78, 314.45°) |
| OKLab | oklab(43.41% 0.1109 -0.1561) |
| OKLCH | oklch(43.41% 0.192 305.4) |
| XYZ | xyz(13.1556, 6.8786, 34.8101) |
| Luminance | 0.0688 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.49
Purple (survey)
#7E1E9C
ΔE00 4.05
Purple Blue
#5D21D0
ΔE00 6.98
Violet Blue
#510AC9
ΔE00 7.19
Indigo Blue
#3A18B1
ΔE00 8.06
Indigo
#4B0082
ΔE00 8.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B22A2 #59A222
analogous
#2B22A2 #6B22A2 #A22299
triadic
#6B22A2 #A26B22 #22A26B
tetradic
#6B22A2 #A22B22 #59A222 #2299A2
square
#6B22A2 #A22B22 #59A222 #2299A2
split-complementary
#6B22A2 #99A222 #22A22B
monochromatic
#280D3D #4A176F #6B22A2 #8C2ED3 #A861DE
Accessibility & contrast
On white
8.84
#6B22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#6B22A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B22A2
8.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B22A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B22A2 | 1.00 | 8.84 | 2.38 | 8.84 |
| #FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#614362
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #6b22a2; /* rgb */ color: rgb(107, 34, 162); /* oklch */ color: oklch(43.4% 0.192 305.4);
Tailwind
colors: {
custom: {
50: '#9b66be',
500: '#6b22a2',
950: '#000000',
},
}SCSS
$custom: #6b22a2; $custom-light: #9b66be; $custom-dark: #000000;
JSON
{
"hex": "#6b22a2",
"rgb": {
"r": 107,
"g": 34,
"b": 162
},
"hsl": {
"h": 274.219,
"s": 65.306,
"l": 38.431
},
"oklch": {
"l": 0.43414,
"c": 0.1915,
"h": 305.4
},
"luminance": 0.06878
}Semantic roles & 50–950 ramp
primary
#6B22A2
secondary
#89C35D
accent
#E84088
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81