#7E2FB5#7E2FB5
#7E2FB5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.201 H 307.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2FB5 |
|---|---|
| RGB | rgb(126, 47, 181) |
| HSL | hsl(275, 59%, 45%) |
| HSV | hsv(275, 74%, 71%) |
| CMYK | cmyk(30.4%, 74%, 0%, 29%) |
| CIE-LAB | lab(37.49, 56.35, -56.37) |
| CIE-LCH | lch(37.49, 79.71, 314.99°) |
| OKLab | oklab(48.64% 0.1217 -0.1601) |
| OKLCH | oklch(48.64% 0.201 307.2) |
| XYZ | xyz(17.9594, 9.8051, 44.6536) |
| Luminance | 0.0980 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.88
Darkviolet
#9400D3
ΔE00 5.20
Rebeccapurple
#663399
ΔE00 5.53
Darkorchid
#9932CC
ΔE00 5.73
Blueviolet
#8A2BE2
ΔE00 6.32
Purply
#983FB2
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2FB5 #66B52F
analogous
#3B2FB5 #7E2FB5 #B52FA9
triadic
#7E2FB5 #B57E2F #2FB57E
tetradic
#7E2FB5 #B53B2F #66B52F #2FA9B5
square
#7E2FB5 #B53B2F #66B52F #2FA9B5
split-complementary
#7E2FB5 #A9B52F #2FB53B
monochromatic
#3A1654 #5C2284 #7E2FB5 #9C50D1 #B880DE
Accessibility & contrast
On white
7.09
#7E2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#7E2FB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2FB5
7.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2FB5 | 1.00 | 7.09 | 2.96 | 7.09 |
| #FFFFFF | 7.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#754F70
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7e2fb5; /* rgb */ color: rgb(126, 47, 181); /* oklch */ color: oklch(48.6% 0.201 307.2);
Tailwind
colors: {
custom: {
50: '#a86fcc',
500: '#7e2fb5',
950: '#000000',
},
}SCSS
$custom: #7e2fb5; $custom-light: #a86fcc; $custom-dark: #000000;
JSON
{
"hex": "#7e2fb5",
"rgb": {
"r": 126,
"g": 47,
"b": 181
},
"hsl": {
"h": 275.373,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.48635,
"c": 0.2011,
"h": 307.2
},
"luminance": 0.09805
}Semantic roles & 50–950 ramp
primary
#7E2FB5
secondary
#99C779
accent
#E24686
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82