#5A4FCB#5A4FCB
#5A4FCB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.185 H 281.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #5A4FCB |
|---|---|
| RGB | rgb(90, 79, 203) |
| HSL | hsl(245, 54%, 55%) |
| HSV | hsv(245, 61%, 80%) |
| CMYK | cmyk(55.7%, 61.1%, 0%, 20.4%) |
| CIE-LAB | lab(41.34, 38.86, -63.16) |
| CIE-LCH | lch(41.34, 74.16, 301.60°) |
| OKLab | oklab(51.04% 0.0372 -0.1813) |
| OKLCH | oklch(51.04% 0.185 281.6) |
| XYZ | xyz(17.7886, 12.0763, 57.8819) |
| Luminance | 0.1208 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.03
Slate Blue
#6A5ACD
ΔE00 4.01
Warm Blue
#4B57DB
ΔE00 4.03
Bluey Purple
#6241C7
ΔE00 4.17
Light Indigo
#6D5ACF
ΔE00 4.38
Ocean Blue
#4F42B5
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A4FCB #C0CB4F
analogous
#4F82CB #5A4FCB #984FCB
triadic
#5A4FCB #CB5A4F #4FCB5A
tetradic
#5A4FCB #CB4F82 #C0CB4F #4FCB98
square
#5A4FCB #CB4F82 #C0CB4F #4FCB98
split-complementary
#5A4FCB #CB984F #82CB4F
monochromatic
#2C247B #3D32AA #5A4FCB #867ED9 #B3ADE7
Accessibility & contrast
On white
6.15
#5A4FCB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.42
#5A4FCB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A4FCB
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A4FCB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A4FCB | 1.00 | 6.15 | 3.42 | 6.15 |
| #FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#216D85
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5a4fcb; /* rgb */ color: rgb(90, 79, 203); /* oklch */ color: oklch(51.0% 0.185 281.6);
Tailwind
colors: {
custom: {
50: '#9381dc',
500: '#5a4fcb',
950: '#000000',
},
}SCSS
$custom: #5a4fcb; $custom-light: #9381dc; $custom-dark: #000000;
JSON
{
"hex": "#5a4fcb",
"rgb": {
"r": 90,
"g": 79,
"b": 203
},
"hsl": {
"h": 245.323,
"s": 54.386,
"l": 55.294
},
"oklch": {
"l": 0.51039,
"c": 0.18511,
"h": 281.6
},
"luminance": 0.12077
}Semantic roles & 50–950 ramp
primary
#5A4FCB
secondary
#D0D5A1
accent
#DE4AD1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83