#5A4FCA#5A4FCA
#5A4FCA is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.0% C 0.184 H 281.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #5A4FCA |
|---|---|
| RGB | rgb(90, 79, 202) |
| HSL | hsl(245, 54%, 55%) |
| HSV | hsv(245, 61%, 79%) |
| CMYK | cmyk(55.4%, 60.9%, 0%, 20.8%) |
| CIE-LAB | lab(41.26, 38.55, -62.70) |
| CIE-LCH | lch(41.26, 73.60, 301.58°) |
| OKLab | oklab(50.96% 0.0373 -0.18) |
| OKLCH | oklch(50.96% 0.184 281.7) |
| XYZ | xyz(17.6698, 12.0288, 57.2564) |
| Luminance | 0.1203 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.99
Slate Blue
#6A5ACD
ΔE00 4.03
Warm Blue
#4B57DB
ΔE00 4.10
Bluey Purple
#6241C7
ΔE00 4.15
Light Indigo
#6D5ACF
ΔE00 4.41
Ocean Blue
#4F42B5
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A4FCA #BFCA4F
analogous
#4F81CA #5A4FCA #984FCA
triadic
#5A4FCA #CA5A4F #4FCA5A
tetradic
#5A4FCA #CA4F81 #BFCA4F #4FCA98
square
#5A4FCA #CA4F81 #BFCA4F #4FCA98
split-complementary
#5A4FCA #CA984F #81CA4F
monochromatic
#2C257A #3D33A9 #5A4FCA #867ED8 #B2ADE6
Accessibility & contrast
On white
6.17
#5A4FCA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#5A4FCA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A4FCA
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A4FCA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A4FCA | 1.00 | 6.17 | 3.41 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#236D85
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5a4fca; /* rgb */ color: rgb(90, 79, 202); /* oklch */ color: oklch(51.0% 0.184 281.7);
Tailwind
colors: {
custom: {
50: '#9281db',
500: '#5a4fca',
950: '#000000',
},
}SCSS
$custom: #5a4fca; $custom-light: #9281db; $custom-dark: #000000;
JSON
{
"hex": "#5a4fca",
"rgb": {
"r": 90,
"g": 79,
"b": 202
},
"hsl": {
"h": 245.366,
"s": 53.712,
"l": 55.098
},
"oklch": {
"l": 0.5096,
"c": 0.18381,
"h": 281.7
},
"luminance": 0.1203
}Semantic roles & 50–950 ramp
primary
#5A4FCA
secondary
#D0D4A1
accent
#DD4BD0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83