#5B229E#5B229E
#5B229E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.184 H 298.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).
Color values
| HEX | #5B229E |
|---|---|
| RGB | rgb(91, 34, 158) |
| HSL | hsl(268, 65%, 38%) |
| HSV | hsv(268, 78%, 62%) |
| CMYK | cmyk(42.4%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(29.00, 50.13, -56.61) |
| CIE-LCH | lch(29.00, 75.61, 311.53°) |
| OKLab | oklab(41.07% 0.0883 -0.1619) |
| OKLCH | oklch(41.07% 0.184 298.6) |
| XYZ | xyz(11.0564, 5.8367, 32.8852) |
| Luminance | 0.0584 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.27
Indigo Blue
#3A18B1
ΔE00 5.74
Violet Blue
#510AC9
ΔE00 6.24
Indigo
#4B0082
ΔE00 6.48
Purple (survey)
#7E1E9C
ΔE00 6.71
Purple Blue
#5D21D0
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B229E #659E22
analogous
#22279E #5B229E #99229E
triadic
#5B229E #9E5B22 #229E5B
tetradic
#5B229E #9E2227 #659E22 #229E99
square
#5B229E #9E2227 #659E22 #229E99
split-complementary
#5B229E #9E9922 #279E22
monochromatic
#210C39 #3E176C #5B229E #782DD0 #985EDC
Accessibility & contrast
On white
9.69
#5B229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#5B229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B229E
9.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B229E | 1.00 | 9.69 | 2.17 | 9.69 |
| #FFFFFF | 9.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#4A445F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5b229e; /* rgb */ color: rgb(91, 34, 158); /* oklch */ color: oklch(41.1% 0.184 298.6);
Tailwind
colors: {
custom: {
50: '#9064bc',
500: '#5b229e',
950: '#000000',
},
}SCSS
$custom: #5b229e; $custom-light: #9064bc; $custom-dark: #000000;
JSON
{
"hex": "#5b229e",
"rgb": {
"r": 91,
"g": 34,
"b": 158
},
"hsl": {
"h": 267.581,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.41068,
"c": 0.18448,
"h": 298.6
},
"luminance": 0.05837
}Semantic roles & 50–950 ramp
primary
#5B229E
secondary
#92C15B
accent
#E8409B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81