#5B42CF#5B42CF
#5B42CF is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.4% C 0.206 H 284.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).
Color values
| HEX | #5B42CF |
|---|---|
| RGB | rgb(91, 66, 207) |
| HSL | hsl(251, 59%, 54%) |
| HSV | hsv(251, 68%, 81%) |
| CMYK | cmyk(56%, 68.1%, 0%, 18.8%) |
| CIE-LAB | lab(38.94, 47.75, -69.38) |
| CIE-LCH | lch(38.94, 84.22, 304.54°) |
| OKLab | oklab(49.42% 0.05 -0.1996) |
| OKLCH | oklch(49.42% 0.206 284.1) |
| XYZ | xyz(17.5216, 10.6245, 60.1468) |
| Luminance | 0.1063 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.59
Blue With A Hint Of Purple
#533CC6
ΔE00 2.29
Blurple
#5539CC
ΔE00 2.34
Purpley Blue
#5F34E7
ΔE00 3.82
Ocean Blue
#4F42B5
ΔE00 4.09
Burple
#6832E3
ΔE00 4.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B42CF #B6CF42
analogous
#426FCF #5B42CF #A142CF
triadic
#5B42CF #CF5B42 #42CF5B
tetradic
#5B42CF #CF426F #B6CF42 #42CFA1
square
#5B42CF #CF426F #B6CF42 #42CFA1
split-complementary
#5B42CF #CFA142 #6FCF42
monochromatic
#2E1F78 #412BA9 #5B42CF #8573DB #B0A4E8
Accessibility & contrast
On white
6.72
#5B42CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#5B42CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B42CF
6.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B42CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B42CF | 1.00 | 6.72 | 3.13 | 6.72 |
| #FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0057CC
Tritanopia (blue-blind)
#226783
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5b42cf; /* rgb */ color: rgb(91, 66, 207); /* oklch */ color: oklch(49.4% 0.206 284.1);
Tailwind
colors: {
custom: {
50: '#9578df',
500: '#5b42cf',
950: '#000000',
},
}SCSS
$custom: #5b42cf; $custom-light: #9578df; $custom-dark: #000000;
JSON
{
"hex": "#5b42cf",
"rgb": {
"r": 91,
"g": 66,
"b": 207
},
"hsl": {
"h": 250.638,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.49421,
"c": 0.20574,
"h": 284.1
},
"luminance": 0.10626
}Semantic roles & 50–950 ramp
primary
#5B42CF
secondary
#CAD598
accent
#E345C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83