#5F229E#5F229E
#5F229E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.185 H 300.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).
Color values
| HEX | #5F229E |
|---|---|
| RGB | rgb(95, 34, 158) |
| HSL | hsl(270, 65%, 38%) |
| HSV | hsv(270, 78%, 62%) |
| CMYK | cmyk(39.9%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(29.53, 50.79, -55.72) |
| CIE-LCH | lch(29.53, 75.39, 312.35°) |
| OKLab | oklab(41.55% 0.0944 -0.1592) |
| OKLCH | oklch(41.55% 0.185 300.7) |
| XYZ | xyz(11.4614, 6.0455, 32.9042) |
| Luminance | 0.0605 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.87
Purple (survey)
#7E1E9C
ΔE00 6.00
Indigo Blue
#3A18B1
ΔE00 6.37
Violet Blue
#510AC9
ΔE00 6.51
Indigo
#4B0082
ΔE00 6.74
Purple Blue
#5D21D0
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F229E #619E22
analogous
#22239E #5F229E #9D229E
triadic
#5F229E #9E5F22 #229E5F
tetradic
#5F229E #9E2223 #619E22 #229E9D
square
#5F229E #9E2223 #619E22 #229E9D
split-complementary
#5F229E #9E9D22 #239E22
monochromatic
#220C39 #41176C #5F229E #7D2DD0 #9C5EDC
Accessibility & contrast
On white
9.51
#5F229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#5F229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F229E
9.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F229E | 1.00 | 9.51 | 2.21 | 9.51 |
| #FFFFFF | 9.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#51435F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5f229e; /* rgb */ color: rgb(95, 34, 158); /* oklch */ color: oklch(41.6% 0.185 300.7);
Tailwind
colors: {
custom: {
50: '#9364bc',
500: '#5f229e',
950: '#000000',
},
}SCSS
$custom: #5f229e; $custom-light: #9364bc; $custom-dark: #000000;
JSON
{
"hex": "#5f229e",
"rgb": {
"r": 95,
"g": 34,
"b": 158
},
"hsl": {
"h": 269.516,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.41554,
"c": 0.18507,
"h": 300.7
},
"luminance": 0.06046
}Semantic roles & 50–950 ramp
primary
#5F229E
secondary
#8FC15B
accent
#E84095
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81