#7F5CB7#7F5CB7
#7F5CB7 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.2% C 0.140 H 299.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5CB7 |
|---|---|
| RGB | rgb(127, 92, 183) |
| HSL | hsl(263, 39%, 54%) |
| HSV | hsv(263, 50%, 72%) |
| CMYK | cmyk(30.6%, 49.7%, 0%, 28.2%) |
| CIE-LAB | lab(46.43, 33.79, -43.18) |
| CIE-LCH | lch(46.43, 54.83, 308.05°) |
| OKLab | oklab(55.21% 0.069 -0.1215) |
| OKLCH | oklch(55.21% 0.14 299.6) |
| XYZ | xyz(21.1248, 15.5851, 46.6858) |
| Luminance | 0.1558 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.27
Royal Purple
#7851A9
ΔE00 4.00
Light Indigo
#6D5ACF
ΔE00 6.03
Amethyst
#9B5FC0
ΔE00 6.08
Slate Blue
#6A5ACD
ΔE00 6.26
Iris
#6258C4
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5CB7 #94B75C
analogous
#5C67B7 #7F5CB7 #AD5CB7
triadic
#7F5CB7 #B77F5C #5CB77F
tetradic
#7F5CB7 #B75C67 #94B75C #5CB7AD
square
#7F5CB7 #B75C67 #94B75C #5CB7AD
split-complementary
#7F5CB7 #B7AD5C #67B75C
monochromatic
#452F6A #614294 #7F5CB7 #A086CA #C2B1DD
Accessibility & contrast
On white
5.10
#7F5CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#7F5CB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5CB7
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5CB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5CB7 | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E6EBA
Deuteranopia (green-blind)
#466DB5
Tritanopia (blue-blind)
#746D81
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7f5cb7; /* rgb */ color: rgb(127, 92, 183); /* oklch */ color: oklch(55.2% 0.140 299.6);
Tailwind
colors: {
custom: {
50: '#a78bcd',
500: '#7f5cb7',
950: '#000000',
},
}SCSS
$custom: #7f5cb7; $custom-light: #a78bcd; $custom-dark: #000000;
JSON
{
"hex": "#7f5cb7",
"rgb": {
"r": 127,
"g": 92,
"b": 183
},
"hsl": {
"h": 263.077,
"s": 38.723,
"l": 53.922
},
"oklch": {
"l": 0.55205,
"c": 0.13975,
"h": 299.6
},
"luminance": 0.15585
}Semantic roles & 50–950 ramp
primary
#7F5CB7
secondary
#BCCBA4
accent
#CF59A1
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C13
muted
#7F7D82