#7F4C8A#7F4C8A
#7F4C8A is a mid, moderate purple. Relative luminance 0.115; OKLCH L 50.0% C 0.112 H 320.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4C8A |
|---|---|
| RGB | rgb(127, 76, 138) |
| HSL | hsl(289, 29%, 42%) |
| HSV | hsv(289, 45%, 54%) |
| CMYK | cmyk(8%, 44.9%, 0%, 45.9%) |
| CIE-LAB | lab(40.44, 32.37, -25.85) |
| CIE-LCH | lch(40.44, 41.43, 321.39°) |
| OKLab | oklab(49.98% 0.0858 -0.0712) |
| OKLCH | oklch(49.98% 0.112 320.3) |
| XYZ | xyz(15.9237, 11.5165, 25.4239) |
| Luminance | 0.1152 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Eggplant
#894585
ΔE00 3.38
Muted Purple
#805B87
ΔE00 5.53
Purplish
#94568C
ΔE00 6.01
Bruise
#7E4071
ΔE00 6.22
Purpleish
#98568D
ΔE00 6.75
Dull Purple
#84597E
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4C8A #578A4C
analogous
#604C8A #7F4C8A #8A4C76
triadic
#7F4C8A #8A7F4C #4C8A7F
tetradic
#7F4C8A #8A604C #578A4C #4C768A
square
#7F4C8A #8A604C #578A4C #4C768A
split-complementary
#7F4C8A #768A4C #4C8A60
monochromatic
#36213B #5B3663 #7F4C8A #A068AC #B88FC1
Accessibility & contrast
On white
6.36
#7F4C8A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#7F4C8A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4C8A
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4C8A | 1.00 | 6.36 | 3.30 | 6.36 |
| #FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#435C8C
Deuteranopia (green-blind)
#516188
Tritanopia (blue-blind)
#805464
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #7f4c8a; /* rgb */ color: rgb(127, 76, 138); /* oklch */ color: oklch(50.0% 0.112 320.3);
Tailwind
colors: {
custom: {
50: '#a57fac',
500: '#7f4c8a',
950: '#000000',
},
}SCSS
$custom: #7f4c8a; $custom-light: #a57fac; $custom-dark: #000000;
JSON
{
"hex": "#7f4c8a",
"rgb": {
"r": 127,
"g": 76,
"b": 138
},
"hsl": {
"h": 289.355,
"s": 28.972,
"l": 41.961
},
"oklch": {
"l": 0.49975,
"c": 0.11153,
"h": 320.3
},
"luminance": 0.11516
}Semantic roles & 50–950 ramp
primary
#7F4C8A
secondary
#8CAE84
accent
#C56374
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F