#5942C8#5942C8
#5942C8 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.197 H 284.2°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).
Color values
| HEX | #5942C8 |
|---|---|
| RGB | rgb(89, 66, 200) |
| HSL | hsl(250, 55%, 52%) |
| HSV | hsv(250, 67%, 78%) |
| CMYK | cmyk(55.5%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(38.18, 45.33, -66.57) |
| CIE-LCH | lch(38.18, 80.54, 304.25°) |
| OKLab | oklab(48.65% 0.0483 -0.1914) |
| OKLCH | oklch(48.65% 0.197 284.2) |
| XYZ | xyz(16.4902, 10.1894, 55.7302) |
| Luminance | 0.1019 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.47
Blue With A Hint Of Purple
#533CC6
ΔE00 1.71
Blurple
#5539CC
ΔE00 2.19
Ocean Blue
#4F42B5
ΔE00 3.12
Purpley Blue
#5F34E7
ΔE00 4.60
Burple
#6832E3
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5942C8 #B1C842
analogous
#426EC8 #5942C8 #9C42C8
triadic
#5942C8 #C85942 #42C859
tetradic
#5942C8 #C8426E #B1C842 #42C89C
square
#5942C8 #C8426E #B1C842 #42C89C
split-complementary
#5942C8 #C89C42 #6EC842
monochromatic
#2E206F #412E9F #5942C8 #8371D6 #ACA1E4
Accessibility & contrast
On white
6.91
#5942C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.04
#5942C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5942C8
6.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5942C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5942C8 | 1.00 | 6.91 | 3.04 | 6.91 |
| #FFFFFF | 6.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#24647F
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #5942c8; /* rgb */ color: rgb(89, 66, 200); /* oklch */ color: oklch(48.7% 0.197 284.2);
Tailwind
colors: {
custom: {
50: '#9378da',
500: '#5942c8',
950: '#000000',
},
}SCSS
$custom: #5942c8; $custom-light: #9378da; $custom-dark: #000000;
JSON
{
"hex": "#5942c8",
"rgb": {
"r": 89,
"g": 66,
"b": 200
},
"hsl": {
"h": 250.299,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.48651,
"c": 0.19741,
"h": 284.2
},
"luminance": 0.1019
}Semantic roles & 50–950 ramp
primary
#5942C8
secondary
#C6D096
accent
#DE4AC5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83