#5851C8#5851C8
#5851C8 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.179 H 280.6°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #5851C8 |
|---|---|
| RGB | rgb(88, 81, 200) |
| HSL | hsl(244, 52%, 55%) |
| HSV | hsv(244, 60%, 78%) |
| CMYK | cmyk(56%, 59.5%, 0%, 21.6%) |
| CIE-LAB | lab(41.42, 36.35, -61.30) |
| CIE-LCH | lch(41.42, 71.26, 300.67°) |
| OKLab | oklab(50.99% 0.0329 -0.1759) |
| OKLCH | oklch(50.99% 0.179 280.6) |
| XYZ | xyz(17.3890, 12.1286, 56.0571) |
| Luminance | 0.1213 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.60
Warm Blue
#4B57DB
ΔE00 3.72
Slate Blue
#6A5ACD
ΔE00 3.91
Light Indigo
#6D5ACF
ΔE00 4.38
Dark Periwinkle
#665FD1
ΔE00 4.80
Bluey Purple
#6241C7
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5851C8 #C1C851
analogous
#5186C8 #5851C8 #9351C8
triadic
#5851C8 #C85851 #51C858
tetradic
#5851C8 #C85186 #C1C851 #51C893
square
#5851C8 #C85186 #C1C851 #51C893
split-complementary
#5851C8 #C89351 #86C851
monochromatic
#2B2679 #3C35A7 #5851C8 #8580D7 #B1AEE5
Accessibility & contrast
On white
6.13
#5851C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#5851C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5851C8
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5851C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5851C8 | 1.00 | 6.13 | 3.43 | 6.13 |
| #FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#1E6D85
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5851c8; /* rgb */ color: rgb(88, 81, 200); /* oklch */ color: oklch(51.0% 0.179 280.6);
Tailwind
colors: {
custom: {
50: '#9182da',
500: '#5851c8',
950: '#000000',
},
}SCSS
$custom: #5851c8; $custom-light: #9182da; $custom-dark: #000000;
JSON
{
"hex": "#5851c8",
"rgb": {
"r": 88,
"g": 81,
"b": 200
},
"hsl": {
"h": 243.529,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.5099,
"c": 0.17895,
"h": 280.6
},
"luminance": 0.1213
}Semantic roles & 50–950 ramp
primary
#5851C8
secondary
#D0D3A1
accent
#DB4CD3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83