#5F2CA1#5F2CA1
#5F2CA1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.177 H 298.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2CA1 |
|---|---|
| RGB | rgb(95, 44, 161) |
| HSL | hsl(266, 57%, 40%) |
| HSV | hsv(266, 73%, 63%) |
| CMYK | cmyk(41%, 72.7%, 0%, 36.9%) |
| CIE-LAB | lab(31.36, 47.03, -54.54) |
| CIE-LCH | lch(31.36, 72.02, 310.77°) |
| OKLab | oklab(42.93% 0.0845 -0.1558) |
| OKLCH | oklch(42.93% 0.177 298.5) |
| XYZ | xyz(12.0514, 6.8073, 34.3903) |
| Luminance | 0.0681 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.69
Purple (survey)
#7E1E9C
ΔE00 6.36
Purple Blue
#5D21D0
ΔE00 6.54
Indigo Blue
#3A18B1
ΔE00 6.88
Violet Blue
#510AC9
ΔE00 6.90
Blue With A Hint Of Purple
#533CC6
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2CA1 #6EA12C
analogous
#2C33A1 #5F2CA1 #992CA1
triadic
#5F2CA1 #A15F2C #2CA15F
tetradic
#5F2CA1 #A12C33 #6EA12C #2CA199
square
#5F2CA1 #A12C33 #6EA12C #2CA199
split-complementary
#5F2CA1 #A1992C #33A12C
monochromatic
#261241 #431F71 #5F2CA1 #7C40CB #9D70D8
Accessibility & contrast
On white
8.89
#5F2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#5F2CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2CA1
8.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2CA1 | 1.00 | 8.89 | 2.36 | 8.89 |
| #FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4F4964
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #5f2ca1; /* rgb */ color: rgb(95, 44, 161); /* oklch */ color: oklch(42.9% 0.177 298.5);
Tailwind
colors: {
custom: {
50: '#926abe',
500: '#5f2ca1',
950: '#000000',
},
}SCSS
$custom: #5f2ca1; $custom-light: #926abe; $custom-dark: #000000;
JSON
{
"hex": "#5f2ca1",
"rgb": {
"r": 95,
"g": 44,
"b": 161
},
"hsl": {
"h": 266.154,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.42926,
"c": 0.17723,
"h": 298.5
},
"luminance": 0.06807
}Semantic roles & 50–950 ramp
primary
#5F2CA1
secondary
#9ABF6A
accent
#E0479E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81