#5D229F#5D229F
#5D229F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.186 H 299.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #5D229F |
|---|---|
| RGB | rgb(93, 34, 159) |
| HSL | hsl(268, 65%, 38%) |
| HSV | hsv(268, 79%, 62%) |
| CMYK | cmyk(41.5%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(29.35, 50.70, -56.63) |
| CIE-LCH | lch(29.35, 76.01, 311.84°) |
| OKLab | oklab(41.4% 0.0911 -0.1619) |
| OKLCH | oklch(41.4% 0.186 299.4) |
| XYZ | xyz(11.3426, 5.9743, 33.3497) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.10
Indigo Blue
#3A18B1
ΔE00 5.96
Violet Blue
#510AC9
ΔE00 6.23
Purple (survey)
#7E1E9C
ΔE00 6.40
Indigo
#4B0082
ΔE00 6.69
Purple Blue
#5D21D0
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D229F #649F22
analogous
#22259F #5D229F #9B229F
triadic
#5D229F #9F5D22 #229F5D
tetradic
#5D229F #9F2225 #649F22 #229F9B
square
#5D229F #9F2225 #649F22 #229F9B
split-complementary
#5D229F #9F9B22 #259F22
monochromatic
#220C3A #40176D #5D229F #7A2DD1 #9A5FDD
Accessibility & contrast
On white
9.57
#5D229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5D229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D229F
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D229F | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4D4460
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5d229f; /* rgb */ color: rgb(93, 34, 159); /* oklch */ color: oklch(41.4% 0.186 299.4);
Tailwind
colors: {
custom: {
50: '#9164bc',
500: '#5d229f',
950: '#000000',
},
}SCSS
$custom: #5d229f; $custom-light: #9164bc; $custom-dark: #000000;
JSON
{
"hex": "#5d229f",
"rgb": {
"r": 93,
"g": 34,
"b": 159
},
"hsl": {
"h": 268.32,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.41397,
"c": 0.18581,
"h": 299.4
},
"luminance": 0.05974
}Semantic roles & 50–950 ramp
primary
#5D229F
secondary
#91C15B
accent
#E84099
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81