#5F46BF#5F46BF
#5F46BF is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.0% C 0.181 H 287.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).
Color values
| HEX | #5F46BF |
|---|---|
| RGB | rgb(95, 70, 191) |
| HSL | hsl(252, 49%, 51%) |
| HSV | hsv(252, 63%, 75%) |
| CMYK | cmyk(50.3%, 63.4%, 0%, 25.1%) |
| CIE-LAB | lab(38.85, 41.42, -60.20) |
| CIE-LCH | lch(38.85, 73.07, 304.53°) |
| OKLab | oklab(49.05% 0.0536 -0.1725) |
| OKLCH | oklch(49.05% 0.181 287.3) |
| XYZ | xyz(16.3107, 10.5740, 50.4617) |
| Luminance | 0.1057 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.75
Ocean Blue
#4F42B5
ΔE00 3.06
Blue With A Hint Of Purple
#533CC6
ΔE00 3.15
Blurple
#5539CC
ΔE00 3.77
Iris
#6258C4
ΔE00 5.29
Burple
#6832E3
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F46BF #A6BF46
analogous
#4669BF #5F46BF #9B46BF
triadic
#5F46BF #BF5F46 #46BF5F
tetradic
#5F46BF #BF4669 #A6BF46 #46BF9B
square
#5F46BF #BF4669 #A6BF46 #46BF9B
split-complementary
#5F46BF #BF9B46 #69BF46
monochromatic
#322467 #473394 #5F46BF #8673CF #AEA1DE
Accessibility & contrast
On white
6.74
#5F46BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#5F46BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F46BF
6.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F46BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F46BF | 1.00 | 6.74 | 3.12 | 6.74 |
| #FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#0058BD
Tritanopia (blue-blind)
#3C637C
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5f46bf; /* rgb */ color: rgb(95, 70, 191); /* oklch */ color: oklch(49.0% 0.181 287.3);
Tailwind
colors: {
custom: {
50: '#947bd3',
500: '#5f46bf',
950: '#000000',
},
}SCSS
$custom: #5f46bf; $custom-light: #947bd3; $custom-dark: #000000;
JSON
{
"hex": "#5f46bf",
"rgb": {
"r": 95,
"g": 70,
"b": 191
},
"hsl": {
"h": 252.397,
"s": 48.594,
"l": 51.176
},
"oklch": {
"l": 0.49047,
"c": 0.18064,
"h": 287.3
},
"luminance": 0.10575
}Semantic roles & 50–950 ramp
primary
#5F46BF
secondary
#C0CB96
accent
#D850BC
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83