#5F45BC#5F45BC
#5F45BC is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.178 H 288.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #5F45BC |
|---|---|
| RGB | rgb(95, 69, 188) |
| HSL | hsl(253, 47%, 50%) |
| HSV | hsv(253, 63%, 74%) |
| CMYK | cmyk(49.5%, 63.3%, 0%, 26.3%) |
| CIE-LAB | lab(38.41, 41.10, -59.16) |
| CIE-LCH | lch(38.41, 72.04, 304.79°) |
| OKLab | oklab(48.65% 0.0549 -0.1695) |
| OKLCH | oklch(48.65% 0.178 288) |
| XYZ | xyz(15.9219, 10.3193, 48.7201) |
| Luminance | 0.1032 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.89
Ocean Blue
#4F42B5
ΔE00 2.86
Blue With A Hint Of Purple
#533CC6
ΔE00 3.13
Blurple
#5539CC
ΔE00 3.80
Iris
#6258C4
ΔE00 5.64
Burple
#6832E3
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F45BC #A2BC45
analogous
#4566BC #5F45BC #9A45BC
triadic
#5F45BC #BC5F45 #45BC5F
tetradic
#5F45BC #BC4566 #A2BC45 #45BC9A
square
#5F45BC #BC4566 #A2BC45 #45BC9A
split-complementary
#5F45BC #BC9A45 #66BC45
monochromatic
#312463 #483490 #5F45BC #8672CC #AC9FDC
Accessibility & contrast
On white
6.85
#5F45BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#5F45BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F45BC
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F45BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F45BC | 1.00 | 6.85 | 3.06 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#3F617A
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #5f45bc; /* rgb */ color: rgb(95, 69, 188); /* oklch */ color: oklch(48.7% 0.178 288.0);
Tailwind
colors: {
custom: {
50: '#947ad1',
500: '#5f45bc',
950: '#000000',
},
}SCSS
$custom: #5f45bc; $custom-light: #947ad1; $custom-dark: #000000;
JSON
{
"hex": "#5f45bc",
"rgb": {
"r": 95,
"g": 69,
"b": 188
},
"hsl": {
"h": 253.109,
"s": 47.036,
"l": 50.392
},
"oklch": {
"l": 0.48652,
"c": 0.17813,
"h": 288
},
"luminance": 0.1032
}Semantic roles & 50–950 ramp
primary
#5F45BC
secondary
#BDC994
accent
#D751B9
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82