#7F2AB5#7F2AB5
#7F2AB5 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.207 H 308.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2AB5 |
|---|---|
| RGB | rgb(127, 42, 181) |
| HSL | hsl(277, 62%, 44%) |
| HSV | hsv(277, 77%, 71%) |
| CMYK | cmyk(29.8%, 76.8%, 0%, 29%) |
| CIE-LAB | lab(36.94, 58.52, -57.26) |
| CIE-LCH | lch(36.94, 81.87, 315.63°) |
| OKLab | oklab(48.28% 0.1276 -0.1626) |
| OKLCH | oklch(48.28% 0.207 308.1) |
| XYZ | xyz(17.9191, 9.5044, 44.5977) |
| Luminance | 0.0950 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.44
Darkviolet
#9400D3
ΔE00 4.89
Rebeccapurple
#663399
ΔE00 5.68
Darkorchid
#9932CC
ΔE00 5.95
Blueviolet
#8A2BE2
ΔE00 6.47
Purply
#983FB2
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2AB5 #60B52A
analogous
#3A2AB5 #7F2AB5 #B52AA5
triadic
#7F2AB5 #B57F2A #2AB57F
tetradic
#7F2AB5 #B53A2A #60B52A #2AA5B5
square
#7F2AB5 #B53A2A #60B52A #2AA5B5
split-complementary
#7F2AB5 #A5B52A #2AB53A
monochromatic
#391352 #5C1E83 #7F2AB5 #9E48D4 #B879E0
Accessibility & contrast
On white
7.24
#7F2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#7F2AB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2AB5
7.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2AB5 | 1.00 | 7.24 | 2.90 | 7.24 |
| #FFFFFF | 7.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#764C6E
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7f2ab5; /* rgb */ color: rgb(127, 42, 181); /* oklch */ color: oklch(48.3% 0.207 308.1);
Tailwind
colors: {
custom: {
50: '#a96dcc',
500: '#7f2ab5',
950: '#000000',
},
}SCSS
$custom: #7f2ab5; $custom-light: #a96dcc; $custom-dark: #000000;
JSON
{
"hex": "#7f2ab5",
"rgb": {
"r": 127,
"g": 42,
"b": 181
},
"hsl": {
"h": 276.691,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.48275,
"c": 0.20674,
"h": 308.1
},
"luminance": 0.09504
}Semantic roles & 50–950 ramp
primary
#7F2AB5
secondary
#94C873
accent
#E54282
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82