#5F2CA3#5F2CA3
#5F2CA3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.179 H 297.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2CA3 |
|---|---|
| RGB | rgb(95, 44, 163) |
| HSL | hsl(266, 57%, 41%) |
| HSV | hsv(266, 73%, 64%) |
| CMYK | cmyk(41.7%, 73%, 0%, 36.1%) |
| CIE-LAB | lab(31.53, 47.56, -55.48) |
| CIE-LCH | lch(31.53, 73.07, 310.60°) |
| OKLab | oklab(43.09% 0.0841 -0.1586) |
| OKLCH | oklch(43.09% 0.179 297.9) |
| XYZ | xyz(12.2292, 6.8784, 35.3266) |
| Luminance | 0.0688 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.90
Purple Blue
#5D21D0
ΔE00 6.24
Purple (survey)
#7E1E9C
ΔE00 6.47
Violet Blue
#510AC9
ΔE00 6.65
Indigo Blue
#3A18B1
ΔE00 6.74
Blue With A Hint Of Purple
#533CC6
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2CA3 #70A32C
analogous
#2C35A3 #5F2CA3 #9A2CA3
triadic
#5F2CA3 #A35F2C #2CA35F
tetradic
#5F2CA3 #A32C35 #70A32C #2CA39A
square
#5F2CA3 #A32C35 #70A32C #2CA39A
split-complementary
#5F2CA3 #A39A2C #35A32C
monochromatic
#271243 #431F73 #5F2CA3 #7C41CC #9D71D9
Accessibility & contrast
On white
8.84
#5F2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#5F2CA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2CA3
8.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2CA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2CA3 | 1.00 | 8.84 | 2.38 | 8.84 |
| #FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#4E4A65
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #5f2ca3; /* rgb */ color: rgb(95, 44, 163); /* oklch */ color: oklch(43.1% 0.179 297.9);
Tailwind
colors: {
custom: {
50: '#936abf',
500: '#5f2ca3',
950: '#000000',
},
}SCSS
$custom: #5f2ca3; $custom-light: #936abf; $custom-dark: #000000;
JSON
{
"hex": "#5f2ca3",
"rgb": {
"r": 95,
"g": 44,
"b": 163
},
"hsl": {
"h": 265.714,
"s": 57.488,
"l": 40.588
},
"oklch": {
"l": 0.43094,
"c": 0.17948,
"h": 297.9
},
"luminance": 0.06879
}Semantic roles & 50–950 ramp
primary
#5F2CA3
secondary
#9BC06B
accent
#E1479F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81