#5D42C8#5D42C8
#5D42C8 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.197 H 285.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).
Color values
| HEX | #5D42C8 |
|---|---|
| RGB | rgb(93, 66, 200) |
| HSL | hsl(252, 55%, 52%) |
| HSV | hsv(252, 67%, 78%) |
| CMYK | cmyk(53.5%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(38.54, 45.99, -65.97) |
| CIE-LCH | lch(38.54, 80.42, 304.88°) |
| OKLab | oklab(49% 0.0537 -0.1895) |
| OKLCH | oklch(49% 0.197 285.8) |
| XYZ | xyz(16.8846, 10.3928, 55.7487) |
| Luminance | 0.1039 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.87
Blue With A Hint Of Purple
#533CC6
ΔE00 2.07
Blurple
#5539CC
ΔE00 2.38
Ocean Blue
#4F42B5
ΔE00 3.49
Purpley Blue
#5F34E7
ΔE00 4.48
Burple
#6832E3
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D42C8 #ADC842
analogous
#426AC8 #5D42C8 #A042C8
triadic
#5D42C8 #C85D42 #42C85D
tetradic
#5D42C8 #C8426A #ADC842 #42C8A0
square
#5D42C8 #C8426A #ADC842 #42C8A0
split-complementary
#5D42C8 #C8A042 #6AC842
monochromatic
#30206F #452E9F #5D42C8 #8671D6 #AEA1E4
Accessibility & contrast
On white
6.82
#5D42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#5D42C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5D42C8
6.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D42C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D42C8 | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0057C5
Tritanopia (blue-blind)
#30647F
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5d42c8; /* rgb */ color: rgb(93, 66, 200); /* oklch */ color: oklch(49.0% 0.197 285.8);
Tailwind
colors: {
custom: {
50: '#9578da',
500: '#5d42c8',
950: '#000000',
},
}SCSS
$custom: #5d42c8; $custom-light: #9578da; $custom-dark: #000000;
JSON
{
"hex": "#5d42c8",
"rgb": {
"r": 93,
"g": 66,
"b": 200
},
"hsl": {
"h": 252.09,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.48996,
"c": 0.19699,
"h": 285.8
},
"luminance": 0.10394
}Semantic roles & 50–950 ramp
primary
#5D42C8
secondary
#C4D096
accent
#DE4AC0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83