#5C1FA6#5C1FA6
#5C1FA6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.196 H 297.3°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).
Color values
| HEX | #5C1FA6 |
|---|---|
| RGB | rgb(92, 31, 166) |
| HSL | hsl(267, 69%, 39%) |
| HSV | hsv(267, 81%, 65%) |
| CMYK | cmyk(44.6%, 81.3%, 0%, 34.9%) |
| CIE-LAB | lab(29.43, 53.49, -60.74) |
| CIE-LCH | lch(29.43, 80.93, 311.37°) |
| OKLab | oklab(41.62% 0.0898 -0.174) |
| OKLCH | oklch(41.62% 0.196 297.3) |
| XYZ | xyz(11.7847, 6.0082, 36.6078) |
| Luminance | 0.0601 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.98
Violet Blue
#510AC9
ΔE00 5.06
Indigo Blue
#3A18B1
ΔE00 5.13
Purple Blue
#5D21D0
ΔE00 5.76
Purple (survey)
#7E1E9C
ΔE00 6.94
Indigo
#4B0082
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C1FA6 #69A61F
analogous
#1F25A6 #5C1FA6 #9F1FA6
triadic
#5C1FA6 #A65C1F #1FA65C
tetradic
#5C1FA6 #A61F25 #69A61F #1FA69F
square
#5C1FA6 #A61F25 #69A61F #1FA69F
split-complementary
#5C1FA6 #A69F1F #25A61F
monochromatic
#230C3F #3F1572 #5C1FA6 #792BD7 #995EE1
Accessibility & contrast
On white
9.54
#5C1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5C1FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C1FA6
9.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C1FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C1FA6 | 1.00 | 9.54 | 2.20 | 9.54 |
| #FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#484663
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5c1fa6; /* rgb */ color: rgb(92, 31, 166); /* oklch */ color: oklch(41.6% 0.196 297.3);
Tailwind
colors: {
custom: {
50: '#9263c2',
500: '#5c1fa6',
950: '#000000',
},
}SCSS
$custom: #5c1fa6; $custom-light: #9263c2; $custom-dark: #000000;
JSON
{
"hex": "#5c1fa6",
"rgb": {
"r": 92,
"g": 31,
"b": 166
},
"hsl": {
"h": 267.111,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.41622,
"c": 0.1958,
"h": 297.3
},
"luminance": 0.06008
}Semantic roles & 50–950 ramp
primary
#5C1FA6
secondary
#96C55B
accent
#EB3C9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81