#5642C8#5642C8
#5642C8 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.4% C 0.198 H 282.9°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).
Color values
| HEX | #5642C8 |
|---|---|
| RGB | rgb(86, 66, 200) |
| HSL | hsl(249, 55%, 52%) |
| HSV | hsv(249, 67%, 78%) |
| CMYK | cmyk(57%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(37.92, 44.85, -67.00) |
| CIE-LCH | lch(37.92, 80.63, 303.80°) |
| OKLab | oklab(48.4% 0.0442 -0.1928) |
| OKLCH | oklch(48.4% 0.198 282.9) |
| XYZ | xyz(16.2081, 10.0440, 55.7170) |
| Luminance | 0.1004 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 1.57
Bluey Purple
#6241C7
ΔE00 1.92
Blurple
#5539CC
ΔE00 2.16
Ocean Blue
#4F42B5
ΔE00 2.90
Purpley Blue
#5F34E7
ΔE00 4.74
Burple
#6832E3
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5642C8 #B4C842
analogous
#4271C8 #5642C8 #9942C8
triadic
#5642C8 #C85642 #42C856
tetradic
#5642C8 #C84271 #B4C842 #42C899
square
#5642C8 #C84271 #B4C842 #42C899
split-complementary
#5642C8 #C89942 #71C842
monochromatic
#2C206F #3F2E9F #5642C8 #8071D6 #ABA1E4
Accessibility & contrast
On white
6.98
#5642C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#5642C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5642C8
6.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5642C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5642C8 | 1.00 | 6.98 | 3.01 | 6.98 |
| #FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#18647F
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #5642c8; /* rgb */ color: rgb(86, 66, 200); /* oklch */ color: oklch(48.4% 0.198 282.9);
Tailwind
colors: {
custom: {
50: '#9178da',
500: '#5642c8',
950: '#000000',
},
}SCSS
$custom: #5642c8; $custom-light: #9178da; $custom-dark: #000000;
JSON
{
"hex": "#5642c8",
"rgb": {
"r": 86,
"g": 66,
"b": 200
},
"hsl": {
"h": 248.955,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.484,
"c": 0.19778,
"h": 282.9
},
"luminance": 0.10045
}Semantic roles & 50–950 ramp
primary
#5642C8
secondary
#C7D096
accent
#DE4AC8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83