#5B229B#5B229B
#5B229B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.181 H 299.5°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #5B229B |
|---|---|
| RGB | rgb(91, 34, 155) |
| HSL | hsl(268, 64%, 37%) |
| HSV | hsv(268, 78%, 61%) |
| CMYK | cmyk(41.3%, 78.1%, 0%, 39.2%) |
| CIE-LAB | lab(28.73, 49.37, -55.21) |
| CIE-LCH | lch(28.73, 74.07, 311.81°) |
| OKLab | oklab(40.8% 0.0892 -0.1578) |
| OKLCH | oklch(40.8% 0.181 299.5) |
| XYZ | xyz(10.8013, 5.7346, 31.5418) |
| Luminance | 0.0573 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.15
Indigo Blue
#3A18B1
ΔE00 6.04
Indigo
#4B0082
ΔE00 6.22
Purple (survey)
#7E1E9C
ΔE00 6.61
Violet Blue
#510AC9
ΔE00 6.67
Purple Blue
#5D21D0
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B229B #629B22
analogous
#22269B #5B229B #97229B
triadic
#5B229B #9B5B22 #229B5B
tetradic
#5B229B #9B2226 #629B22 #229B97
square
#5B229B #9B2226 #629B22 #229B97
split-complementary
#5B229B #9B9722 #269B22
monochromatic
#200C37 #3E1769 #5B229B #782DCD #985CDB
Accessibility & contrast
On white
9.78
#5B229B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#5B229B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B229B
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B229B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B229B | 1.00 | 9.78 | 2.15 | 9.78 |
| #FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4C425E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5b229b; /* rgb */ color: rgb(91, 34, 155); /* oklch */ color: oklch(40.8% 0.181 299.5);
Tailwind
colors: {
custom: {
50: '#9064b9',
500: '#5b229b',
950: '#000000',
},
}SCSS
$custom: #5b229b; $custom-light: #9064b9; $custom-dark: #000000;
JSON
{
"hex": "#5b229b",
"rgb": {
"r": 91,
"g": 34,
"b": 155
},
"hsl": {
"h": 268.264,
"s": 64.021,
"l": 37.059
},
"oklch": {
"l": 0.40802,
"c": 0.1813,
"h": 299.5
},
"luminance": 0.05735
}Semantic roles & 50–950 ramp
primary
#5B229B
secondary
#8FC059
accent
#E74199
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81