#7F2799#7F2799
#7F2799 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.184 H 317.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2799 |
|---|---|
| RGB | rgb(127, 39, 153) |
| HSL | hsl(286, 59%, 38%) |
| HSV | hsv(286, 75%, 60%) |
| CMYK | cmyk(17%, 74.5%, 0%, 40%) |
| CIE-LAB | lab(34.53, 53.77, -44.35) |
| CIE-LCH | lch(34.53, 69.70, 320.48°) |
| OKLab | oklab(45.93% 0.135 -0.1247) |
| OKLCH | oklch(45.93% 0.184 317.3) |
| XYZ | xyz(15.2268, 8.2636, 30.9238) |
| Luminance | 0.0826 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 1.46
Darkmagenta
#8B008B
ΔE00 4.72
Rebeccapurple
#663399
ΔE00 5.33
Purple
#800080
ΔE00 5.73
Warm Purple
#952E8F
ΔE00 6.18
Barney Purple
#A00498
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2799 #419927
analogous
#462799 #7F2799 #99277A
triadic
#7F2799 #997F27 #27997F
tetradic
#7F2799 #994627 #419927 #277A99
square
#7F2799 #994627 #419927 #277A99
split-complementary
#7F2799 #7A9927 #279946
monochromatic
#2E0E37 #571B68 #7F2799 #A733CA #BD63D7
Accessibility & contrast
On white
7.92
#7F2799 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.65
#7F2799 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2799
7.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2799 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2799 | 1.00 | 7.92 | 2.65 | 7.92 |
| #FFFFFF | 7.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#2A5496
Tritanopia (blue-blind)
#7E3F5E
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #7f2799; /* rgb */ color: rgb(127, 39, 153); /* oklch */ color: oklch(45.9% 0.184 317.3);
Tailwind
colors: {
custom: {
50: '#a86ab8',
500: '#7f2799',
950: '#000000',
},
}SCSS
$custom: #7f2799; $custom-light: #a86ab8; $custom-dark: #000000;
JSON
{
"hex": "#7f2799",
"rgb": {
"r": 127,
"g": 39,
"b": 153
},
"hsl": {
"h": 286.316,
"s": 59.375,
"l": 37.647
},
"oklch": {
"l": 0.45935,
"c": 0.18382,
"h": 317.3
},
"luminance": 0.08263
}Semantic roles & 50–950 ramp
primary
#7F2799
secondary
#74BD5F
accent
#E34569
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80