#7D1F76#7D1F76
#7D1F76 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.162 H 331.3°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).
Color values
| HEX | #7D1F76 |
|---|---|
| RGB | rgb(125, 31, 118) |
| HSL | hsl(304, 60%, 31%) |
| HSV | hsv(304, 75%, 49%) |
| CMYK | cmyk(0%, 75.2%, 5.6%, 51%) |
| CIE-LAB | lab(30.99, 49.78, -28.28) |
| CIE-LCH | lch(30.99, 57.25, 330.39°) |
| OKLab | oklab(42.65% 0.1421 -0.0779) |
| OKLCH | oklch(42.65% 0.162 331.3) |
| XYZ | xyz(12.2174, 6.6489, 17.7759) |
| Luminance | 0.0665 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 1.98
Purple
#800080
ΔE00 3.46
Darkmagenta
#8B008B
ΔE00 4.47
Warm Purple
#952E8F
ΔE00 6.29
Rich Purple
#720058
ΔE00 6.38
Grape
#6C3461
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D1F76 #1F7D26
analogous
#551F7D #7D1F76 #7D1F47
triadic
#7D1F76 #767D1F #1F767D
tetradic
#7D1F76 #7D551F #1F7D26 #1F477D
square
#7D1F76 #7D551F #1F7D26 #1F477D
split-complementary
#7D1F76 #477D1F #1F7D55
monochromatic
#1B0719 #4C1348 #7D1F76 #AE2BA4 #D145C7
Accessibility & contrast
On white
9.01
#7D1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#7D1F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7D1F76
9.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D1F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D1F76 | 1.00 | 9.01 | 2.33 | 9.01 |
| #FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#174178
Deuteranopia (green-blind)
#3C4E74
Tritanopia (blue-blind)
#822A48
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #7d1f76; /* rgb */ color: rgb(125, 31, 118); /* oklch */ color: oklch(42.7% 0.162 331.3);
Tailwind
colors: {
custom: {
50: '#a6659e',
500: '#7d1f76',
950: '#000000',
},
}SCSS
$custom: #7d1f76; $custom-light: #a6659e; $custom-dark: #000000;
JSON
{
"hex": "#7d1f76",
"rgb": {
"r": 125,
"g": 31,
"b": 118
},
"hsl": {
"h": 304.468,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.42651,
"c": 0.16205,
"h": 331.3
},
"luminance": 0.06648
}Semantic roles & 50–950 ramp
primary
#7D1F76
secondary
#48B04F
accent
#E35044
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E