#7F4EAA#7F4EAA
#7F4EAA is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.1% C 0.146 H 306.6°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4EAA |
|---|---|
| RGB | rgb(127, 78, 170) |
| HSL | hsl(272, 37%, 49%) |
| HSV | hsv(272, 54%, 67%) |
| CMYK | cmyk(25.3%, 54.1%, 0%, 33.3%) |
| CIE-LAB | lab(42.56, 38.57, -41.70) |
| CIE-LCH | lch(42.56, 56.80, 312.76°) |
| OKLab | oklab(52.1% 0.0871 -0.1172) |
| OKLCH | oklch(52.1% 0.146 306.6) |
| XYZ | xyz(18.7310, 12.8633, 39.5185) |
| Luminance | 0.1286 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 1.78
Deep Lavender
#8D5EB7
ΔE00 5.60
Purply
#983FB2
ΔE00 5.66
Medium Purple
#9E43A2
ΔE00 7.49
Darkorchid
#9932CC
ΔE00 7.82
Amethyst
#9B5FC0
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4EAA #79AA4E
analogous
#514EAA #7F4EAA #AA4EA7
triadic
#7F4EAA #AA7F4E #4EAA7F
tetradic
#7F4EAA #AA514E #79AA4E #4EA7AA
square
#7F4EAA #AA514E #79AA4E #4EA7AA
split-complementary
#7F4EAA #A7AA4E #4EAA51
monochromatic
#402856 #603B80 #7F4EAA #9D75C0 #BB9FD3
Accessibility & contrast
On white
5.88
#7F4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#7F4EAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4EAA
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4EAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4EAA | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3163AD
Deuteranopia (green-blind)
#4065A8
Tritanopia (blue-blind)
#785F74
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7f4eaa; /* rgb */ color: rgb(127, 78, 170); /* oklch */ color: oklch(52.1% 0.146 306.6);
Tailwind
colors: {
custom: {
50: '#a781c4',
500: '#7f4eaa',
950: '#000000',
},
}SCSS
$custom: #7f4eaa; $custom-light: #a781c4; $custom-dark: #000000;
JSON
{
"hex": "#7f4eaa",
"rgb": {
"r": 127,
"g": 78,
"b": 170
},
"hsl": {
"h": 271.957,
"s": 37.097,
"l": 48.627
},
"oklch": {
"l": 0.52096,
"c": 0.14599,
"h": 306.6
},
"luminance": 0.12863
}Semantic roles & 50–950 ramp
primary
#7F4EAA
secondary
#A8C094
accent
#CD5B90
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A12
muted
#7F7C81