#5A5FF0#5A5FF0
#5A5FF0 is a mid, highly saturated blue. Relative luminance 0.166; OKLCH L 56.7% C 0.213 H 275.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FF0 |
|---|---|
| RGB | rgb(90, 95, 240) |
| HSL | hsl(238, 83%, 65%) |
| HSV | hsv(238, 63%, 94%) |
| CMYK | cmyk(62.5%, 60.4%, 0%, 5.9%) |
| CIE-LAB | lab(47.81, 41.11, -73.68) |
| CIE-LCH | lch(47.81, 84.37, 299.16°) |
| OKLab | oklab(56.67% 0.0212 -0.2121) |
| OKLCH | oklch(56.67% 0.213 275.7) |
| XYZ | xyz(24.0317, 16.6474, 84.3680) |
| Luminance | 0.1665 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 4.37
Warm Blue
#4B57DB
ΔE00 4.41
Mediumslateblue
#7B68EE
ΔE00 5.60
Slate Blue
#6A5ACD
ΔE00 5.61
Light Indigo
#6D5ACF
ΔE00 5.63
Royal Blue
#4169E1
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FF0 #F0EB5A
analogous
#5AAAF0 #5A5FF0 #A05AF0
triadic
#5A5FF0 #F05A5F #5FF05A
tetradic
#5A5FF0 #F05AAA #F0EB5A #5AF0A0
square
#5A5FF0 #F05AAA #F0EB5A #5AF0A0
split-complementary
#5A5FF0 #F0A05A #AAF05A
monochromatic
#1117BE #2229EB #5A5FF0 #9295F5 #CACCFA
Accessibility & contrast
On white
4.85
#5A5FF0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.33
#5A5FF0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FF0
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FF0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FF0 | 1.00 | 4.85 | 4.33 | 4.85 |
| #FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078F5
Deuteranopia (green-blind)
#006BED
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5a5ff0; /* rgb */ color: rgb(90, 95, 240); /* oklch */ color: oklch(56.7% 0.213 275.7);
Tailwind
colors: {
custom: {
50: '#988cf6',
500: '#5a5ff0',
950: '#000000',
},
}SCSS
$custom: #5a5ff0; $custom-light: #988cf6; $custom-dark: #000000;
JSON
{
"hex": "#5a5ff0",
"rgb": {
"r": 90,
"g": 95,
"b": 240
},
"hsl": {
"h": 238,
"s": 83.333,
"l": 64.706
},
"oklch": {
"l": 0.56674,
"c": 0.2132,
"h": 275.7
},
"luminance": 0.16649
}Semantic roles & 50–950 ramp
primary
#5A5FF0
secondary
#EDEBB9
accent
#D806E0
background
#FAF8FF
surface
#F3F0FF
border
#CDCBD7
text
#0F0C17
muted
#7F7D85