#7F5DCD#7F5DCD
#7F5DCD is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.7% C 0.167 H 294.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5DCD |
|---|---|
| RGB | rgb(127, 93, 205) |
| HSL | hsl(258, 53%, 58%) |
| HSV | hsv(258, 55%, 80%) |
| CMYK | cmyk(38%, 54.6%, 0%, 19.6%) |
| CIE-LAB | lab(47.94, 39.03, -53.48) |
| CIE-LCH | lch(47.94, 66.20, 306.12°) |
| OKLab | oklab(56.75% 0.0691 -0.1517) |
| OKLCH | oklch(56.75% 0.167 294.5) |
| XYZ | xyz(23.6833, 16.7480, 59.7307) |
| Luminance | 0.1675 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.66
Purpley
#8756E4
ΔE00 3.84
Slate Blue
#6A5ACD
ΔE00 4.18
Dark Periwinkle
#665FD1
ΔE00 5.12
Deep Lavender
#8D5EB7
ΔE00 5.61
Iris
#6258C4
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5DCD #ABCD5D
analogous
#5D73CD #7F5DCD #B75DCD
triadic
#7F5DCD #CD7F5D #5DCD7F
tetradic
#7F5DCD #CD5D73 #ABCD5D #5DCDB7
square
#7F5DCD #CD5D73 #ABCD5D #5DCDB7
split-complementary
#7F5DCD #CDB75D #73CD5D
monochromatic
#462986 #5E38B5 #7F5DCD #A48CDB #C9BBEA
Accessibility & contrast
On white
4.83
#7F5DCD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.35
#7F5DCD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5DCD
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5DCD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5DCD | 1.00 | 4.83 | 4.35 | 4.83 |
| #FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2973D1
Deuteranopia (green-blind)
#3370CA
Tritanopia (blue-blind)
#6C748C
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #7f5dcd; /* rgb */ color: rgb(127, 93, 205); /* oklch */ color: oklch(56.7% 0.167 294.5);
Tailwind
colors: {
custom: {
50: '#a88cdd',
500: '#7f5dcd',
950: '#000000',
},
}SCSS
$custom: #7f5dcd; $custom-light: #a88cdd; $custom-dark: #000000;
JSON
{
"hex": "#7f5dcd",
"rgb": {
"r": 127,
"g": 93,
"b": 205
},
"hsl": {
"h": 258.214,
"s": 52.83,
"l": 58.431
},
"oklch": {
"l": 0.56746,
"c": 0.16671,
"h": 294.5
},
"luminance": 0.16749
}Semantic roles & 50–950 ramp
primary
#7F5DCD
secondary
#CCD9AD
accent
#DC4CB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83