#6A2398#6A2398
#6A2398 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.180 H 308.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).
Color values
| HEX | #6A2398 |
|---|---|
| RGB | rgb(106, 35, 152) |
| HSL | hsl(276, 63%, 37%) |
| HSV | hsv(276, 77%, 60%) |
| CMYK | cmyk(30.3%, 77%, 0%, 40.4%) |
| CIE-LAB | lab(30.72, 50.92, -50.05) |
| CIE-LCH | lch(30.72, 71.39, 315.49°) |
| OKLab | oklab(42.57% 0.1109 -0.1421) |
| OKLCH | oklch(42.57% 0.18 308) |
| XYZ | xyz(12.2112, 6.5334, 30.3175) |
| Luminance | 0.0653 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.18
Purple (survey)
#7E1E9C
ΔE00 3.70
Purple
#800080
ΔE00 7.45
Indigo
#4B0082
ΔE00 7.63
Darkmagenta
#8B008B
ΔE00 7.64
Darkish Purple
#751973
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A2398 #519823
analogous
#2F2398 #6A2398 #98238C
triadic
#6A2398 #986A23 #23986A
tetradic
#6A2398 #982F23 #519823 #238C98
square
#6A2398 #982F23 #519823 #238C98
split-complementary
#6A2398 #8C9823 #23982F
monochromatic
#250C35 #471866 #6A2398 #8D2ECA #A85CD9
Accessibility & contrast
On white
9.10
#6A2398 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#6A2398 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6A2398
9.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A2398 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A2398 | 1.00 | 9.10 | 2.31 | 9.10 |
| #FFFFFF | 9.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#63405C
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #6a2398; /* rgb */ color: rgb(106, 35, 152); /* oklch */ color: oklch(42.6% 0.180 308.0);
Tailwind
colors: {
custom: {
50: '#9966b7',
500: '#6a2398',
950: '#000000',
},
}SCSS
$custom: #6a2398; $custom-light: #9966b7; $custom-dark: #000000;
JSON
{
"hex": "#6a2398",
"rgb": {
"r": 106,
"g": 35,
"b": 152
},
"hsl": {
"h": 276.41,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.42567,
"c": 0.18032,
"h": 308
},
"luminance": 0.06533
}Semantic roles & 50–950 ramp
primary
#6A2398
secondary
#81BE59
accent
#E64282
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80