#7F2EB3#7F2EB3
#7F2EB3 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.201 H 308.3°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2EB3 |
|---|---|
| RGB | rgb(127, 46, 179) |
| HSL | hsl(277, 59%, 44%) |
| HSV | hsv(277, 74%, 70%) |
| CMYK | cmyk(29.1%, 74.3%, 0%, 29.8%) |
| CIE-LAB | lab(37.34, 56.51, -55.42) |
| CIE-LCH | lch(37.34, 79.15, 315.55°) |
| OKLab | oklab(48.51% 0.1244 -0.1573) |
| OKLCH | oklch(48.51% 0.201 308.3) |
| XYZ | xyz(17.8644, 9.7210, 43.5743) |
| Luminance | 0.0972 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.50
Darkviolet
#9400D3
ΔE00 5.27
Rebeccapurple
#663399
ΔE00 5.47
Darkorchid
#9932CC
ΔE00 5.80
Purply
#983FB2
ΔE00 6.58
Blueviolet
#8A2BE2
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2EB3 #62B32E
analogous
#3C2EB3 #7F2EB3 #B32EA5
triadic
#7F2EB3 #B37F2E #2EB37F
tetradic
#7F2EB3 #B33C2E #62B32E #2EA5B3
square
#7F2EB3 #B33C2E #62B32E #2EA5B3
split-complementary
#7F2EB3 #A5B32E #2EB33C
monochromatic
#3A1552 #5C2182 #7F2EB3 #9E4DD1 #B87EDE
Accessibility & contrast
On white
7.13
#7F2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#7F2EB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2EB3
7.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2EB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2EB3 | 1.00 | 7.13 | 2.94 | 7.13 |
| #FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#774E6E
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7f2eb3; /* rgb */ color: rgb(127, 46, 179); /* oklch */ color: oklch(48.5% 0.201 308.3);
Tailwind
colors: {
custom: {
50: '#a96fcb',
500: '#7f2eb3',
950: '#000000',
},
}SCSS
$custom: #7f2eb3; $custom-light: #a96fcb; $custom-dark: #000000;
JSON
{
"hex": "#7f2eb3",
"rgb": {
"r": 127,
"g": 46,
"b": 179
},
"hsl": {
"h": 276.541,
"s": 59.111,
"l": 44.118
},
"oklch": {
"l": 0.48509,
"c": 0.20052,
"h": 308.3
},
"luminance": 0.09721
}Semantic roles & 50–950 ramp
primary
#7F2EB3
secondary
#96C676
accent
#E24683
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82