#5D42C2#5D42C2
#5D42C2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.190 H 286.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).
Color values
| HEX | #5D42C2 |
|---|---|
| RGB | rgb(93, 66, 194) |
| HSL | hsl(253, 51%, 51%) |
| HSV | hsv(253, 66%, 76%) |
| CMYK | cmyk(52.1%, 66%, 0%, 23.9%) |
| CIE-LAB | lab(38.05, 44.22, -63.26) |
| CIE-LCH | lch(38.05, 77.19, 304.95°) |
| OKLab | oklab(48.5% 0.0545 -0.1816) |
| OKLCH | oklch(48.5% 0.19 286.7) |
| XYZ | xyz(16.1971, 10.1178, 52.1280) |
| Luminance | 0.1012 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.08
Blue With A Hint Of Purple
#533CC6
ΔE00 2.09
Blurple
#5539CC
ΔE00 2.64
Ocean Blue
#4F42B5
ΔE00 2.92
Purpley Blue
#5F34E7
ΔE00 5.18
Burple
#6832E3
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D42C2 #A7C242
analogous
#4267C2 #5D42C2 #9D42C2
triadic
#5D42C2 #C25D42 #42C25D
tetradic
#5D42C2 #C24267 #A7C242 #42C29D
square
#5D42C2 #C24267 #A7C242 #42C29D
split-complementary
#5D42C2 #C29D42 #67C242
monochromatic
#302268 #463196 #5D42C2 #8570D1 #AC9FE0
Accessibility & contrast
On white
6.94
#5D42C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#5D42C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5D42C2
6.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D42C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D42C2 | 1.00 | 6.94 | 3.02 | 6.94 |
| #FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#36627C
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #5d42c2; /* rgb */ color: rgb(93, 66, 194); /* oklch */ color: oklch(48.5% 0.190 286.7);
Tailwind
colors: {
custom: {
50: '#9478d5',
500: '#5d42c2',
950: '#000000',
},
}SCSS
$custom: #5d42c2; $custom-light: #9478d5; $custom-dark: #000000;
JSON
{
"hex": "#5d42c2",
"rgb": {
"r": 93,
"g": 66,
"b": 194
},
"hsl": {
"h": 252.656,
"s": 51.2,
"l": 50.98
},
"oklch": {
"l": 0.48495,
"c": 0.18959,
"h": 286.7
},
"luminance": 0.10119
}Semantic roles & 50–950 ramp
primary
#5D42C2
secondary
#C0CC94
accent
#DB4DBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83