#5C2FAB#5C2FAB
#5C2FAB is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.185 H 294.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).
Color values
| HEX | #5C2FAB |
|---|---|
| RGB | rgb(92, 47, 171) |
| HSL | hsl(262, 57%, 43%) |
| HSV | hsv(262, 73%, 67%) |
| CMYK | cmyk(46.2%, 72.5%, 0%, 32.9%) |
| CIE-LAB | lab(32.37, 47.67, -58.95) |
| CIE-LCH | lch(32.37, 75.81, 308.97°) |
| OKLab | oklab(43.81% 0.0751 -0.1689) |
| OKLCH | oklch(43.81% 0.185 294) |
| XYZ | xyz(12.7788, 7.2482, 39.2459) |
| Luminance | 0.0725 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.98
Purple Blue
#5D21D0
ΔE00 5.15
Blue With A Hint Of Purple
#533CC6
ΔE00 5.29
Blurple
#5539CC
ΔE00 5.44
Ocean Blue
#4F42B5
ΔE00 5.68
Bluey Purple
#6241C7
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C2FAB #7EAB2F
analogous
#2F40AB #5C2FAB #9A2FAB
triadic
#5C2FAB #AB5C2F #2FAB5C
tetradic
#5C2FAB #AB2F40 #7EAB2F #2FAB9A
square
#5C2FAB #AB2F40 #7EAB2F #2FAB9A
split-complementary
#5C2FAB #AB9A2F #40AB2F
monochromatic
#28154B #42227B #5C2FAB #7A4ACD #9D7ADA
Accessibility & contrast
On white
8.57
#5C2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#5C2FAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C2FAB
8.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C2FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C2FAB | 1.00 | 8.57 | 2.45 | 8.57 |
| #FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#454F6A
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #5c2fab; /* rgb */ color: rgb(92, 47, 171); /* oklch */ color: oklch(43.8% 0.185 294.0);
Tailwind
colors: {
custom: {
50: '#916cc5',
500: '#5c2fab',
950: '#000000',
},
}SCSS
$custom: #5c2fab; $custom-light: #916cc5; $custom-dark: #000000;
JSON
{
"hex": "#5c2fab",
"rgb": {
"r": 92,
"g": 47,
"b": 171
},
"hsl": {
"h": 261.774,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.43814,
"c": 0.1848,
"h": 294
},
"luminance": 0.07249
}Semantic roles & 50–950 ramp
primary
#5C2FAB
secondary
#A6C373
accent
#E048A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82