#5F4397#5F4397
#5F4397 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.6% C 0.133 H 296.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).
Color values
| HEX | #5F4397 |
|---|---|
| RGB | rgb(95, 67, 151) |
| HSL | hsl(260, 39%, 43%) |
| HSV | hsv(260, 56%, 59%) |
| CMYK | cmyk(37.1%, 55.6%, 0%, 40.8%) |
| CIE-LAB | lab(35.36, 31.59, -42.02) |
| CIE-LCH | lch(35.36, 52.56, 306.94°) |
| OKLab | oklab(45.6% 0.0583 -0.119) |
| OKLCH | oklch(45.6% 0.133 296.1) |
| XYZ | xyz(12.3110, 8.6814, 30.2992) |
| Luminance | 0.0868 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.67
Darkslateblue
#483D8B
ΔE00 4.81
Blueberry
#464196
ΔE00 5.22
Ocean Blue
#4F42B5
ΔE00 6.32
Royal Purple
#7851A9
ΔE00 6.34
Twilight
#4E518B
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F4397 #7B9743
analogous
#435197 #5F4397 #894397
triadic
#5F4397 #975F43 #43975F
tetradic
#5F4397 #974351 #7B9743 #439789
square
#5F4397 #974351 #7B9743 #439789
split-complementary
#5F4397 #978943 #519743
monochromatic
#2A1D42 #44306D #5F4397 #7D5FB8 #9F8ACB
Accessibility & contrast
On white
7.67
#5F4397 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#5F4397 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F4397
7.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F4397 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F4397 | 1.00 | 7.67 | 2.74 | 7.67 |
| #FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E549A
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#525466
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #5f4397; /* rgb */ color: rgb(95, 67, 151); /* oklch */ color: oklch(45.6% 0.133 296.1);
Tailwind
colors: {
custom: {
50: '#9078b6',
500: '#5f4397',
950: '#000000',
},
}SCSS
$custom: #5f4397; $custom-light: #9078b6; $custom-dark: #000000;
JSON
{
"hex": "#5f4397",
"rgb": {
"r": 95,
"g": 67,
"b": 151
},
"hsl": {
"h": 260,
"s": 38.532,
"l": 42.745
},
"oklch": {
"l": 0.45595,
"c": 0.13258,
"h": 296.1
},
"luminance": 0.08682
}Semantic roles & 50–950 ramp
primary
#5F4397
secondary
#A4B680
accent
#CE59A7
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0911
muted
#7E7B80