#6A198B#6A198B
#6A198B is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.6% C 0.178 H 313.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).
Color values
| HEX | #6A198B |
|---|---|
| RGB | rgb(106, 25, 139) |
| HSL | hsl(283, 70%, 32%) |
| HSV | hsv(283, 82%, 55%) |
| CMYK | cmyk(23.7%, 82%, 0%, 45.5%) |
| CIE-LAB | lab(28.44, 51.73, -45.73) |
| CIE-LCH | lch(28.44, 69.05, 318.53°) |
| OKLab | oklab(40.65% 0.1224 -0.1294) |
| OKLCH | oklch(40.65% 0.178 313.4) |
| XYZ | xyz(10.9509, 5.6239, 24.9297) |
| Luminance | 0.0562 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.26
Rebeccapurple
#663399
ΔE00 5.31
Purple
#800080
ΔE00 5.56
Darkish Purple
#751973
ΔE00 6.21
Darkmagenta
#8B008B
ΔE00 6.49
Indigo
#4B0082
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A198B #3A8B19
analogous
#31198B #6A198B #8B1973
triadic
#6A198B #8B6A19 #198B6A
tetradic
#6A198B #8B3119 #3A8B19 #19738B
square
#6A198B #8B3119 #3A8B19 #19738B
split-complementary
#6A198B #738B19 #198B31
monochromatic
#1B0623 #421057 #6A198B #9222BF #B041DD
Accessibility & contrast
On white
9.88
#6A198B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#6A198B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6A198B
9.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A198B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A198B | 1.00 | 9.88 | 2.12 | 9.88 |
| #FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#084589
Tritanopia (blue-blind)
#663553
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #6a198b; /* rgb */ color: rgb(106, 25, 139); /* oklch */ color: oklch(40.6% 0.178 313.4);
Tailwind
colors: {
custom: {
50: '#9961ae',
500: '#6a198b',
950: '#000000',
},
}SCSS
$custom: #6a198b; $custom-light: #9961ae; $custom-dark: #000000;
JSON
{
"hex": "#6a198b",
"rgb": {
"r": 106,
"g": 25,
"b": 139
},
"hsl": {
"h": 282.632,
"s": 69.512,
"l": 32.157
},
"oklch": {
"l": 0.4065,
"c": 0.17812,
"h": 313.4
},
"luminance": 0.05624
}Semantic roles & 50–950 ramp
primary
#6A198B
secondary
#66BE42
accent
#EC3B6F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F