#5D4F97#5D4F97
#5D4F97 is a mid, moderate violet. Relative luminance 0.102; OKLCH L 47.6% C 0.113 H 290.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).
Color values
| HEX | #5D4F97 |
|---|---|
| RGB | rgb(93, 79, 151) |
| HSL | hsl(252, 31%, 45%) |
| HSV | hsv(252, 48%, 59%) |
| CMYK | cmyk(38.4%, 47.7%, 0%, 40.8%) |
| CIE-LAB | lab(38.12, 23.66, -37.63) |
| CIE-LCH | lch(38.12, 44.45, 302.16°) |
| OKLab | oklab(47.6% 0.0394 -0.1062) |
| OKLCH | oklch(47.6% 0.113 290.4) |
| XYZ | xyz(12.8946, 10.1531, 30.5525) |
| Luminance | 0.1015 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 4.41
Blueberry
#464196
ΔE00 5.86
Darkslateblue
#483D8B
ΔE00 6.20
Royal Purple
#7851A9
ΔE00 6.21
Dusk
#4E5481
ΔE00 6.53
Ocean Blue
#4F42B5
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D4F97 #89974F
analogous
#4F6597 #5D4F97 #814F97
triadic
#5D4F97 #975D4F #4F975D
tetradic
#5D4F97 #974F65 #89974F #4F9781
square
#5D4F97 #974F65 #89974F #4F9781
split-complementary
#5D4F97 #97814F #65974F
monochromatic
#2C2547 #443A6F #5D4F97 #7D6FB4 #A198C9
Accessibility & contrast
On white
6.93
#5D4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#5D4F97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5D4F97
6.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D4F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D4F97 | 1.00 | 6.93 | 3.03 | 6.93 |
| #FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#355B9A
Deuteranopia (green-blind)
#365895
Tritanopia (blue-blind)
#4E5D6C
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #5d4f97; /* rgb */ color: rgb(93, 79, 151); /* oklch */ color: oklch(47.6% 0.113 290.4);
Tailwind
colors: {
custom: {
50: '#8e80b6',
500: '#5d4f97',
950: '#000000',
},
}SCSS
$custom: #5d4f97; $custom-light: #8e80b6; $custom-dark: #000000;
JSON
{
"hex": "#5d4f97",
"rgb": {
"r": 93,
"g": 79,
"b": 151
},
"hsl": {
"h": 251.667,
"s": 31.304,
"l": 45.098
},
"oklch": {
"l": 0.47602,
"c": 0.11333,
"h": 290.4
},
"luminance": 0.10153
}Semantic roles & 50–950 ramp
primary
#5D4F97
secondary
#AEB68C
accent
#C760B3
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80