#7F2EB6#7F2EB6
#7F2EB6 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.203 H 307.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2EB6 |
|---|---|
| RGB | rgb(127, 46, 182) |
| HSL | hsl(276, 60%, 45%) |
| HSV | hsv(276, 75%, 71%) |
| CMYK | cmyk(30.2%, 74.7%, 0%, 28.6%) |
| CIE-LAB | lab(37.56, 57.17, -56.84) |
| CIE-LCH | lch(37.56, 80.62, 315.17°) |
| OKLab | oklab(48.74% 0.1238 -0.1614) |
| OKLCH | oklch(48.74% 0.203 307.5) |
| XYZ | xyz(18.1711, 9.8437, 45.1897) |
| Luminance | 0.0984 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.90
Darkviolet
#9400D3
ΔE00 4.97
Darkorchid
#9932CC
ΔE00 5.59
Rebeccapurple
#663399
ΔE00 5.73
Blueviolet
#8A2BE2
ΔE00 6.18
Purply
#983FB2
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2EB6 #65B62E
analogous
#3B2EB6 #7F2EB6 #B62EA9
triadic
#7F2EB6 #B67F2E #2EB67F
tetradic
#7F2EB6 #B63B2E #65B62E #2EA9B6
square
#7F2EB6 #B63B2E #65B62E #2EA9B6
split-complementary
#7F2EB6 #A9B62E #2EB63B
monochromatic
#3B1554 #5D2285 #7F2EB6 #9D4FD2 #B880DF
Accessibility & contrast
On white
7.07
#7F2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#7F2EB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2EB6
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2EB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2EB6 | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#764F70
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7f2eb6; /* rgb */ color: rgb(127, 46, 182); /* oklch */ color: oklch(48.7% 0.203 307.5);
Tailwind
colors: {
custom: {
50: '#a96fcd',
500: '#7f2eb6',
950: '#000000',
},
}SCSS
$custom: #7f2eb6; $custom-light: #a96fcd; $custom-dark: #000000;
JSON
{
"hex": "#7f2eb6",
"rgb": {
"r": 127,
"g": 46,
"b": 182
},
"hsl": {
"h": 275.735,
"s": 59.649,
"l": 44.706
},
"oklch": {
"l": 0.48737,
"c": 0.20346,
"h": 307.5
},
"luminance": 0.09843
}Semantic roles & 50–950 ramp
primary
#7F2EB6
secondary
#98C878
accent
#E34585
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82