#7F2AB1#7F2AB1
#7F2AB1 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.203 H 309.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2AB1 |
|---|---|
| RGB | rgb(127, 42, 177) |
| HSL | hsl(278, 62%, 43%) |
| HSV | hsv(278, 76%, 69%) |
| CMYK | cmyk(28.2%, 76.3%, 0%, 30.6%) |
| CIE-LAB | lab(36.64, 57.65, -55.37) |
| CIE-LCH | lch(36.64, 79.94, 316.15°) |
| OKLab | oklab(47.97% 0.1284 -0.1571) |
| OKLCH | oklch(47.97% 0.203 309.3) |
| XYZ | xyz(17.5146, 9.3426, 42.4671) |
| Luminance | 0.0934 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.87
Darkviolet
#9400D3
ΔE00 5.31
Rebeccapurple
#663399
ΔE00 5.37
Darkorchid
#9932CC
ΔE00 6.24
Purply
#983FB2
ΔE00 6.96
Blueviolet
#8A2BE2
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2AB1 #5CB12A
analogous
#3C2AB1 #7F2AB1 #B12A9F
triadic
#7F2AB1 #B17F2A #2AB17F
tetradic
#7F2AB1 #B13C2A #5CB12A #2A9FB1
square
#7F2AB1 #B13C2A #5CB12A #2A9FB1
split-complementary
#7F2AB1 #9FB12A #2AB13C
monochromatic
#38134E #5C1E80 #7F2AB1 #9E45D3 #B877DF
Accessibility & contrast
On white
7.32
#7F2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#7F2AB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2AB1
7.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2AB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2AB1 | 1.00 | 7.32 | 2.87 | 7.32 |
| #FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#774B6C
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #7f2ab1; /* rgb */ color: rgb(127, 42, 177); /* oklch */ color: oklch(48.0% 0.203 309.3);
Tailwind
colors: {
custom: {
50: '#a96dc9',
500: '#7f2ab1',
950: '#000000',
},
}SCSS
$custom: #7f2ab1; $custom-light: #a96dc9; $custom-dark: #000000;
JSON
{
"hex": "#7f2ab1",
"rgb": {
"r": 127,
"g": 42,
"b": 177
},
"hsl": {
"h": 277.778,
"s": 61.644,
"l": 42.941
},
"oklch": {
"l": 0.47967,
"c": 0.20294,
"h": 309.3
},
"luminance": 0.09342
}Semantic roles & 50–950 ramp
primary
#7F2AB1
secondary
#90C670
accent
#E5437F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82