#7F2AB4#7F2AB4
#7F2AB4 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.206 H 308.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2AB4 |
|---|---|
| RGB | rgb(127, 42, 180) |
| HSL | hsl(277, 62%, 44%) |
| HSV | hsv(277, 77%, 71%) |
| CMYK | cmyk(29.4%, 76.7%, 0%, 29.4%) |
| CIE-LAB | lab(36.86, 58.30, -56.79) |
| CIE-LCH | lch(36.86, 81.39, 315.75°) |
| OKLab | oklab(48.2% 0.1278 -0.1613) |
| OKLCH | oklch(48.2% 0.206 308.4) |
| XYZ | xyz(17.8169, 9.4635, 44.0592) |
| Luminance | 0.0946 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.30
Darkviolet
#9400D3
ΔE00 4.99
Rebeccapurple
#663399
ΔE00 5.59
Darkorchid
#9932CC
ΔE00 6.02
Blueviolet
#8A2BE2
ΔE00 6.61
Purply
#983FB2
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2AB4 #5FB42A
analogous
#3A2AB4 #7F2AB4 #B42AA4
triadic
#7F2AB4 #B47F2A #2AB47F
tetradic
#7F2AB4 #B43A2A #5FB42A #2AA4B4
square
#7F2AB4 #B43A2A #5FB42A #2AA4B4
split-complementary
#7F2AB4 #A4B42A #2AB43A
monochromatic
#391351 #5C1E82 #7F2AB4 #9E47D4 #B879E0
Accessibility & contrast
On white
7.26
#7F2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#7F2AB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2AB4
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2AB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2AB4 | 1.00 | 7.26 | 2.89 | 7.26 |
| #FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#774C6E
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7f2ab4; /* rgb */ color: rgb(127, 42, 180); /* oklch */ color: oklch(48.2% 0.206 308.4);
Tailwind
colors: {
custom: {
50: '#a96dcb',
500: '#7f2ab4',
950: '#000000',
},
}SCSS
$custom: #7f2ab4; $custom-light: #a96dcb; $custom-dark: #000000;
JSON
{
"hex": "#7f2ab4",
"rgb": {
"r": 127,
"g": 42,
"b": 180
},
"hsl": {
"h": 276.957,
"s": 62.162,
"l": 43.529
},
"oklch": {
"l": 0.48198,
"c": 0.20579,
"h": 308.4
},
"luminance": 0.09463
}Semantic roles & 50–950 ramp
primary
#7F2AB4
secondary
#93C872
accent
#E54381
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82