#5F4DCD#5F4DCD
#5F4DCD is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.3% C 0.190 H 283.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #5F4DCD |
|---|---|
| RGB | rgb(95, 77, 205) |
| HSL | hsl(248, 56%, 55%) |
| HSV | hsv(248, 62%, 80%) |
| CMYK | cmyk(53.7%, 62.4%, 0%, 19.6%) |
| CIE-LAB | lab(41.45, 41.56, -64.11) |
| CIE-LCH | lch(41.45, 76.41, 302.95°) |
| OKLab | oklab(51.27% 0.0455 -0.184) |
| OKLCH | oklch(51.27% 0.19 283.9) |
| XYZ | xyz(18.3893, 12.1474, 59.1215) |
| Luminance | 0.1215 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.39
Iris
#6258C4
ΔE00 3.48
Slate Blue
#6A5ACD
ΔE00 4.05
Light Indigo
#6D5ACF
ΔE00 4.29
Blue With A Hint Of Purple
#533CC6
ΔE00 4.80
Warm Blue
#4B57DB
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F4DCD #BBCD4D
analogous
#4D7BCD #5F4DCD #9F4DCD
triadic
#5F4DCD #CD5F4D #4DCD5F
tetradic
#5F4DCD #CD4D7B #BBCD4D #4DCD9F
square
#5F4DCD #CD4D7B #BBCD4D #4DCD9F
split-complementary
#5F4DCD #CD9F4D #7BCD4D
monochromatic
#30237D #4230AC #5F4DCD #8A7DDA #B5ADE8
Accessibility & contrast
On white
6.12
#5F4DCD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#5F4DCD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F4DCD
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F4DCD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F4DCD | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#2F6C86
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5f4dcd; /* rgb */ color: rgb(95, 77, 205); /* oklch */ color: oklch(51.3% 0.190 283.9);
Tailwind
colors: {
custom: {
50: '#9680dd',
500: '#5f4dcd',
950: '#000000',
},
}SCSS
$custom: #5f4dcd; $custom-light: #9680dd; $custom-dark: #000000;
JSON
{
"hex": "#5f4dcd",
"rgb": {
"r": 95,
"g": 77,
"b": 205
},
"hsl": {
"h": 248.438,
"s": 56.14,
"l": 55.294
},
"oklch": {
"l": 0.51271,
"c": 0.18953,
"h": 283.9
},
"luminance": 0.12148
}Semantic roles & 50–950 ramp
primary
#5F4DCD
secondary
#CED6A0
accent
#DF48CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83