#7F4CB5#7F4CB5
#7F4CB5 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.5% C 0.162 H 303.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4CB5 |
|---|---|
| RGB | rgb(127, 76, 181) |
| HSL | hsl(269, 42%, 50%) |
| HSV | hsv(269, 58%, 71%) |
| CMYK | cmyk(29.8%, 58%, 0%, 29%) |
| CIE-LAB | lab(42.79, 42.38, -47.82) |
| CIE-LCH | lch(42.79, 63.89, 311.55°) |
| OKLab | oklab(52.48% 0.0901 -0.1351) |
| OKLCH | oklch(52.48% 0.162 303.7) |
| XYZ | xyz(19.6755, 13.0172, 45.1831) |
| Luminance | 0.1302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.77
Purply
#983FB2
ΔE00 5.69
Deep Lavender
#8D5EB7
ΔE00 6.01
Darkorchid
#9932CC
ΔE00 6.54
Bluey Purple
#6241C7
ΔE00 7.10
Light Indigo
#6D5ACF
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4CB5 #82B54C
analogous
#4C4DB5 #7F4CB5 #B44CB5
triadic
#7F4CB5 #B57F4C #4CB57F
tetradic
#7F4CB5 #B54C4D #82B54C #4CB5B4
square
#7F4CB5 #B54C4D #82B54C #4CB5B4
split-complementary
#7F4CB5 #B5B44C #4DB54C
monochromatic
#43275F #61398B #7F4CB5 #9E77C7 #BDA3D9
Accessibility & contrast
On white
5.83
#7F4CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#7F4CB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4CB5
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4CB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4CB5 | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F64B8
Deuteranopia (green-blind)
#3465B3
Tritanopia (blue-blind)
#756179
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #7f4cb5; /* rgb */ color: rgb(127, 76, 181); /* oklch */ color: oklch(52.5% 0.162 303.7);
Tailwind
colors: {
custom: {
50: '#a780cc',
500: '#7f4cb5',
950: '#000000',
},
}SCSS
$custom: #7f4cb5; $custom-light: #a780cc; $custom-dark: #000000;
JSON
{
"hex": "#7f4cb5",
"rgb": {
"r": 127,
"g": 76,
"b": 181
},
"hsl": {
"h": 269.143,
"s": 41.502,
"l": 50.392
},
"oklch": {
"l": 0.52479,
"c": 0.16239,
"h": 303.7
},
"luminance": 0.13017
}Semantic roles & 50–950 ramp
primary
#7F4CB5
secondary
#AFC697
accent
#D15696
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82