#7F4E8A#7F4E8A
#7F4E8A is a mid, moderate purple. Relative luminance 0.118; OKLCH L 50.3% C 0.108 H 320.1°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4E8A |
|---|---|
| RGB | rgb(127, 78, 138) |
| HSL | hsl(289, 28%, 42%) |
| HSV | hsv(289, 43%, 54%) |
| CMYK | cmyk(8%, 43.5%, 0%, 45.9%) |
| CIE-LAB | lab(40.89, 31.23, -25.14) |
| CIE-LCH | lch(40.89, 40.09, 321.16°) |
| OKLab | oklab(50.32% 0.0827 -0.0692) |
| OKLCH | oklch(50.32% 0.108 320.1) |
| XYZ | xyz(16.0637, 11.7963, 25.4706) |
| Luminance | 0.1180 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Eggplant
#894585
ΔE00 3.70
Muted Purple
#805B87
ΔE00 4.92
Purplish
#94568C
ΔE00 5.69
Bruise
#7E4071
ΔE00 6.40
Dull Purple
#84597E
ΔE00 6.47
Purpleish
#98568D
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4E8A #598A4E
analogous
#614E8A #7F4E8A #8A4E77
triadic
#7F4E8A #8A7F4E #4E8A7F
tetradic
#7F4E8A #8A614E #598A4E #4E778A
square
#7F4E8A #8A614E #598A4E #4E778A
split-complementary
#7F4E8A #778A4E #4E8A61
monochromatic
#37223C #5B3863 #7F4E8A #9F6AAB #B891C1
Accessibility & contrast
On white
6.25
#7F4E8A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#7F4E8A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4E8A
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4E8A | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#465D8C
Deuteranopia (green-blind)
#536288
Tritanopia (blue-blind)
#805565
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7f4e8a; /* rgb */ color: rgb(127, 78, 138); /* oklch */ color: oklch(50.3% 0.108 320.1);
Tailwind
colors: {
custom: {
50: '#a581ac',
500: '#7f4e8a',
950: '#000000',
},
}SCSS
$custom: #7f4e8a; $custom-light: #a581ac; $custom-dark: #000000;
JSON
{
"hex": "#7f4e8a",
"rgb": {
"r": 127,
"g": 78,
"b": 138
},
"hsl": {
"h": 289,
"s": 27.778,
"l": 42.353
},
"oklch": {
"l": 0.50315,
"c": 0.10785,
"h": 320.1
},
"luminance": 0.11796
}Semantic roles & 50–950 ramp
primary
#7F4E8A
secondary
#8DAE86
accent
#C46475
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F