#5F47BE#5F47BE
#5F47BE is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.1% C 0.178 H 287.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #5F47BE |
|---|---|
| RGB | rgb(95, 71, 190) |
| HSL | hsl(252, 48%, 51%) |
| HSV | hsv(252, 63%, 75%) |
| CMYK | cmyk(50%, 62.6%, 0%, 25.5%) |
| CIE-LAB | lab(39.00, 40.54, -59.38) |
| CIE-LCH | lch(39.00, 71.90, 304.32°) |
| OKLab | oklab(49.13% 0.0527 -0.1701) |
| OKLCH | oklch(49.13% 0.178 287.2) |
| XYZ | xyz(16.2641, 10.6563, 49.9051) |
| Luminance | 0.1066 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.03
Ocean Blue
#4F42B5
ΔE00 3.08
Blue With A Hint Of Purple
#533CC6
ΔE00 3.40
Blurple
#5539CC
ΔE00 4.05
Iris
#6258C4
ΔE00 5.05
Slate Blue
#6A5ACD
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F47BE #A6BE47
analogous
#476ABE #5F47BE #9A47BE
triadic
#5F47BE #BE5F47 #47BE5F
tetradic
#5F47BE #BE476A #A6BE47 #47BE9A
square
#5F47BE #BE476A #A6BE47 #47BE9A
split-complementary
#5F47BE #BE9A47 #6ABE47
monochromatic
#322466 #473494 #5F47BE #8674CE #AEA1DE
Accessibility & contrast
On white
6.71
#5F47BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#5F47BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F47BE
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F47BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F47BE | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#3D637C
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5f47be; /* rgb */ color: rgb(95, 71, 190); /* oklch */ color: oklch(49.1% 0.178 287.2);
Tailwind
colors: {
custom: {
50: '#947bd2',
500: '#5f47be',
950: '#000000',
},
}SCSS
$custom: #5f47be; $custom-light: #947bd2; $custom-dark: #000000;
JSON
{
"hex": "#5f47be",
"rgb": {
"r": 95,
"g": 71,
"b": 190
},
"hsl": {
"h": 252.101,
"s": 47.791,
"l": 51.176
},
"oklch": {
"l": 0.49126,
"c": 0.17806,
"h": 287.2
},
"luminance": 0.10657
}Semantic roles & 50–950 ramp
primary
#5F47BE
secondary
#C0CB96
accent
#D750BC
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83