#5A56CD#5A56CD
#5A56CD is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.4% C 0.179 H 279.8°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #5A56CD |
|---|---|
| RGB | rgb(90, 86, 205) |
| HSL | hsl(242, 54%, 57%) |
| HSV | hsv(242, 58%, 80%) |
| CMYK | cmyk(56.1%, 58%, 0%, 19.6%) |
| CIE-LAB | lab(43.12, 35.27, -61.42) |
| CIE-LCH | lch(43.12, 70.83, 299.86°) |
| OKLab | oklab(52.4% 0.0303 -0.1762) |
| OKLCH | oklch(52.4% 0.179 279.8) |
| XYZ | xyz(18.5602, 13.2358, 59.3225) |
| Luminance | 0.1324 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 1.96
Warm Blue
#4B57DB
ΔE00 2.76
Slate Blue
#6A5ACD
ΔE00 2.91
Dark Periwinkle
#665FD1
ΔE00 3.28
Light Indigo
#6D5ACF
ΔE00 3.43
Bluey Purple
#6241C7
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A56CD #C9CD56
analogous
#568ECD #5A56CD #9656CD
triadic
#5A56CD #CD5A56 #56CD5A
tetradic
#5A56CD #CD568E #C9CD56 #56CD96
square
#5A56CD #CD568E #C9CD56 #56CD96
split-complementary
#5A56CD #CD9656 #8ECD56
monochromatic
#2A2682 #3934B1 #5A56CD #8885DB #B6B4E9
Accessibility & contrast
On white
5.76
#5A56CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#5A56CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A56CD
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A56CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A56CD | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#1D7289
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #5a56cd; /* rgb */ color: rgb(90, 86, 205); /* oklch */ color: oklch(52.4% 0.179 279.8);
Tailwind
colors: {
custom: {
50: '#9286dd',
500: '#5a56cd',
950: '#000000',
},
}SCSS
$custom: #5a56cd; $custom-light: #9286dd; $custom-dark: #000000;
JSON
{
"hex": "#5a56cd",
"rgb": {
"r": 90,
"g": 86,
"b": 205
},
"hsl": {
"h": 242.017,
"s": 54.338,
"l": 57.059
},
"oklch": {
"l": 0.52396,
"c": 0.17878,
"h": 279.8
},
"luminance": 0.13237
}Semantic roles & 50–950 ramp
primary
#5A56CD
secondary
#D6D8A7
accent
#DE4AD9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83