#5C22A6#5C22A6
#5C22A6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.193 H 297.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).
Color values
| HEX | #5C22A6 |
|---|---|
| RGB | rgb(92, 34, 166) |
| HSL | hsl(266, 66%, 39%) |
| HSV | hsv(266, 80%, 65%) |
| CMYK | cmyk(44.6%, 79.5%, 0%, 34.9%) |
| CIE-LAB | lab(29.84, 52.30, -60.07) |
| CIE-LCH | lch(29.84, 79.64, 311.05°) |
| OKLab | oklab(41.91% 0.0875 -0.1721) |
| OKLCH | oklch(41.91% 0.193 297) |
| XYZ | xyz(11.8668, 6.1723, 36.6351) |
| Luminance | 0.0617 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.63
Violet Blue
#510AC9
ΔE00 5.21
Indigo Blue
#3A18B1
ΔE00 5.27
Purple Blue
#5D21D0
ΔE00 5.68
Purple (survey)
#7E1E9C
ΔE00 6.92
Indigo
#4B0082
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C22A6 #6CA622
analogous
#222AA6 #5C22A6 #9E22A6
triadic
#5C22A6 #A65C22 #22A65C
tetradic
#5C22A6 #A6222A #6CA622 #22A69E
square
#5C22A6 #A6222A #6CA622 #22A69E
split-complementary
#5C22A6 #A69E22 #2AA622
monochromatic
#240D40 #401873 #5C22A6 #7930D5 #9A63DF
Accessibility & contrast
On white
9.40
#5C22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#5C22A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C22A6
9.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C22A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C22A6 | 1.00 | 9.40 | 2.23 | 9.40 |
| #FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#484764
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5c22a6; /* rgb */ color: rgb(92, 34, 166); /* oklch */ color: oklch(41.9% 0.193 297.0);
Tailwind
colors: {
custom: {
50: '#9265c1',
500: '#5c22a6',
950: '#000000',
},
}SCSS
$custom: #5c22a6; $custom-light: #9265c1; $custom-dark: #000000;
JSON
{
"hex": "#5c22a6",
"rgb": {
"r": 92,
"g": 34,
"b": 166
},
"hsl": {
"h": 266.364,
"s": 66,
"l": 39.216
},
"oklch": {
"l": 0.41907,
"c": 0.19305,
"h": 297
},
"luminance": 0.06173
}Semantic roles & 50–950 ramp
primary
#5C22A6
secondary
#98C45F
accent
#E93F9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81