#6A1B87#6A1B87
#6A1B87 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.5% C 0.173 H 314.8°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).
Color values
| HEX | #6A1B87 |
|---|---|
| RGB | rgb(106, 27, 135) |
| HSL | hsl(284, 67%, 32%) |
| HSV | hsv(284, 80%, 53%) |
| CMYK | cmyk(21.5%, 80%, 0%, 47.1%) |
| CIE-LAB | lab(28.37, 50.22, -43.35) |
| CIE-LCH | lch(28.37, 66.34, 319.20°) |
| OKLab | oklab(40.51% 0.1216 -0.1224) |
| OKLCH | oklch(40.51% 0.173 314.8) |
| XYZ | xyz(10.7082, 5.5977, 23.4334) |
| Luminance | 0.0560 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.49
Purple
#800080
ΔE00 5.17
Darkish Purple
#751973
ΔE00 5.52
Rebeccapurple
#663399
ΔE00 5.52
Darkmagenta
#8B008B
ΔE00 6.27
Indigo
#4B0082
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A1B87 #38871B
analogous
#341B87 #6A1B87 #871B6E
triadic
#6A1B87 #876A1B #1B876A
tetradic
#6A1B87 #87341B #38871B #1B6E87
square
#6A1B87 #87341B #38871B #1B6E87
split-complementary
#6A1B87 #6E871B #1B8734
monochromatic
#1A0721 #421154 #6A1B87 #9225BA #B143D9
Accessibility & contrast
On white
9.91
#6A1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#6A1B87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6A1B87
9.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A1B87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A1B87 | 1.00 | 9.91 | 2.12 | 9.91 |
| #FFFFFF | 9.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#144585
Tritanopia (blue-blind)
#673451
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #6a1b87; /* rgb */ color: rgb(106, 27, 135); /* oklch */ color: oklch(40.5% 0.173 314.8);
Tailwind
colors: {
custom: {
50: '#9962ab',
500: '#6a1b87',
950: '#000000',
},
}SCSS
$custom: #6a1b87; $custom-light: #9962ab; $custom-dark: #000000;
JSON
{
"hex": "#6a1b87",
"rgb": {
"r": 106,
"g": 27,
"b": 135
},
"hsl": {
"h": 283.889,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.40506,
"c": 0.17251,
"h": 314.8
},
"luminance": 0.05597
}Semantic roles & 50–950 ramp
primary
#6A1B87
secondary
#63BA44
accent
#EA3E6C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F