#5F4CD8#5F4CD8
#5F4CD8 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.0% C 0.205 H 282.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #5F4CD8 |
|---|---|
| RGB | rgb(95, 76, 216) |
| HSL | hsl(248, 64%, 57%) |
| HSV | hsv(248, 65%, 85%) |
| CMYK | cmyk(56%, 64.8%, 0%, 15.3%) |
| CIE-LAB | lab(42.09, 45.48, -69.39) |
| CIE-LCH | lch(42.09, 82.97, 303.24°) |
| OKLab | oklab(52% 0.0454 -0.1995) |
| OKLCH | oklch(52% 0.205 282.8) |
| XYZ | xyz(19.6946, 12.5584, 66.3387) |
| Luminance | 0.1256 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 3.67
Bluey Purple
#6241C7
ΔE00 3.87
Iris
#6258C4
ΔE00 4.37
Slate Blue
#6A5ACD
ΔE00 4.41
Light Indigo
#6D5ACF
ΔE00 4.53
Warm Blue
#4B57DB
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F4CD8 #C5D84C
analogous
#4C7FD8 #5F4CD8 #A54CD8
triadic
#5F4CD8 #D85F4C #4CD85F
tetradic
#5F4CD8 #D84C7F #C5D84C #4CD8A5
square
#5F4CD8 #D84C7F #C5D84C #4CD8A5
split-complementary
#5F4CD8 #D8A54C #7FD84C
monochromatic
#2D1E8B #3D29BE #5F4CD8 #8C7EE3 #B9B1EE
Accessibility & contrast
On white
5.98
#5F4CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#5F4CD8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F4CD8
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F4CD8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F4CD8 | 1.00 | 5.98 | 3.51 | 5.98 |
| #FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#005FD5
Tritanopia (blue-blind)
#216F8B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #5f4cd8; /* rgb */ color: rgb(95, 76, 216); /* oklch */ color: oklch(52.0% 0.205 282.8);
Tailwind
colors: {
custom: {
50: '#987fe5',
500: '#5f4cd8',
950: '#000000',
},
}SCSS
$custom: #5f4cd8; $custom-light: #987fe5; $custom-dark: #000000;
JSON
{
"hex": "#5f4cd8",
"rgb": {
"r": 95,
"g": 76,
"b": 216
},
"hsl": {
"h": 248.143,
"s": 64.22,
"l": 57.255
},
"oklch": {
"l": 0.52004,
"c": 0.2046,
"h": 282.8
},
"luminance": 0.1256
}Semantic roles & 50–950 ramp
primary
#5F4CD8
secondary
#D5DCA4
accent
#E741D1
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0A16
muted
#7F7C84