#5A42CD#5A42CD
#5A42CD is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.2% C 0.203 H 283.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).
Color values
| HEX | #5A42CD |
|---|---|
| RGB | rgb(90, 66, 205) |
| HSL | hsl(250, 58%, 53%) |
| HSV | hsv(250, 68%, 80%) |
| CMYK | cmyk(56.1%, 67.8%, 0%, 19.6%) |
| CIE-LAB | lab(38.68, 47.00, -68.64) |
| CIE-LCH | lch(38.68, 83.19, 304.40°) |
| OKLab | oklab(49.16% 0.0489 -0.1975) |
| OKLCH | oklch(49.16% 0.203 283.9) |
| XYZ | xyz(17.1807, 10.4768, 58.8627) |
| Luminance | 0.1048 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.54
Blue With A Hint Of Purple
#533CC6
ΔE00 2.06
Blurple
#5539CC
ΔE00 2.23
Ocean Blue
#4F42B5
ΔE00 3.78
Purpley Blue
#5F34E7
ΔE00 4.04
Burple
#6832E3
ΔE00 4.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A42CD #B5CD42
analogous
#426FCD #5A42CD #A042CD
triadic
#5A42CD #CD5A42 #42CD5A
tetradic
#5A42CD #CD426F #B5CD42 #42CDA0
square
#5A42CD #CD426F #B5CD42 #42CDA0
split-complementary
#5A42CD #CDA042 #6FCD42
monochromatic
#2E1F76 #412CA6 #5A42CD #8472DA #AFA3E7
Accessibility & contrast
On white
6.78
#5A42CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#5A42CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A42CD
6.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A42CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A42CD | 1.00 | 6.78 | 3.10 | 6.78 |
| #FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#216682
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5a42cd; /* rgb */ color: rgb(90, 66, 205); /* oklch */ color: oklch(49.2% 0.203 283.9);
Tailwind
colors: {
custom: {
50: '#9478dd',
500: '#5a42cd',
950: '#000000',
},
}SCSS
$custom: #5a42cd; $custom-light: #9478dd; $custom-dark: #000000;
JSON
{
"hex": "#5a42cd",
"rgb": {
"r": 90,
"g": 66,
"b": 205
},
"hsl": {
"h": 250.36,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.49164,
"c": 0.20343,
"h": 283.9
},
"luminance": 0.10478
}Semantic roles & 50–950 ramp
primary
#5A42CD
secondary
#C9D397
accent
#E146C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83