#5D227F#5D227F
#5D227F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.152 H 310.2°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).
Color values
| HEX | #5D227F |
|---|---|
| RGB | rgb(93, 34, 127) |
| HSL | hsl(278, 58%, 32%) |
| HSV | hsv(278, 73%, 50%) |
| CMYK | cmyk(26.8%, 73.2%, 0%, 50.2%) |
| CIE-LAB | lab(26.75, 42.94, -41.06) |
| CIE-LCH | lch(26.75, 59.41, 316.28°) |
| OKLab | oklab(38.75% 0.0981 -0.1162) |
| OKLCH | oklch(38.75% 0.152 310.2) |
| XYZ | xyz(8.9162, 5.0037, 20.5707) |
| Luminance | 0.0500 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.51
Indigo
#4B0082
ΔE00 6.06
Royal Purple (survey)
#4B006E
ΔE00 6.06
Darkish Purple
#751973
ΔE00 6.68
Purple (survey)
#7E1E9C
ΔE00 6.78
Purple
#800080
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D227F #447F22
analogous
#2F227F #5D227F #7F2273
triadic
#5D227F #7F5D22 #227F5D
tetradic
#5D227F #7F2F22 #447F22 #22737F
square
#5D227F #7F2F22 #447F22 #22737F
split-complementary
#5D227F #737F22 #227F2F
monochromatic
#16081E #3A154F #5D227F #802FAF #9F4CCF
Accessibility & contrast
On white
10.50
#5D227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#5D227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D227F
10.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D227F | 1.00 | 10.50 | 2.00 | 10.50 |
| #FFFFFF | 10.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#11407D
Tritanopia (blue-blind)
#58374E
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #5d227f; /* rgb */ color: rgb(93, 34, 127); /* oklch */ color: oklch(38.8% 0.152 310.2);
Tailwind
colors: {
custom: {
50: '#8f63a5',
500: '#5d227f',
950: '#000000',
},
}SCSS
$custom: #5d227f; $custom-light: #8f63a5; $custom-dark: #000000;
JSON
{
"hex": "#5d227f",
"rgb": {
"r": 93,
"g": 34,
"b": 127
},
"hsl": {
"h": 278.065,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.3875,
"c": 0.15204,
"h": 310.2
},
"luminance": 0.05004
}Semantic roles & 50–950 ramp
primary
#5D227F
secondary
#71B24B
accent
#E1477F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F