#7E2FB2#7E2FB2
#7E2FB2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.198 H 308.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2FB2 |
|---|---|
| RGB | rgb(126, 47, 178) |
| HSL | hsl(276, 58%, 44%) |
| HSV | hsv(276, 74%, 70%) |
| CMYK | cmyk(29.2%, 73.6%, 0%, 30.2%) |
| CIE-LAB | lab(37.27, 55.68, -54.95) |
| CIE-LCH | lch(37.27, 78.23, 315.38°) |
| OKLab | oklab(48.41% 0.1222 -0.1559) |
| OKLCH | oklch(48.41% 0.198 308.1) |
| XYZ | xyz(17.6549, 9.6833, 43.0498) |
| Luminance | 0.0968 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.48
Rebeccapurple
#663399
ΔE00 5.27
Darkviolet
#9400D3
ΔE00 5.49
Darkorchid
#9932CC
ΔE00 5.94
Purply
#983FB2
ΔE00 6.62
Blueviolet
#8A2BE2
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2FB2 #63B22F
analogous
#3D2FB2 #7E2FB2 #B22FA5
triadic
#7E2FB2 #B27E2F #2FB27E
tetradic
#7E2FB2 #B23D2F #63B22F #2FA5B2
square
#7E2FB2 #B23D2F #63B22F #2FA5B2
split-complementary
#7E2FB2 #A5B22F #2FB23D
monochromatic
#391551 #5C2282 #7E2FB2 #9D4ED0 #B77EDD
Accessibility & contrast
On white
7.15
#7E2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#7E2FB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2FB2
7.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2FB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2FB2 | 1.00 | 7.15 | 2.94 | 7.15 |
| #FFFFFF | 7.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#764E6E
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7e2fb2; /* rgb */ color: rgb(126, 47, 178); /* oklch */ color: oklch(48.4% 0.198 308.1);
Tailwind
colors: {
custom: {
50: '#a86fca',
500: '#7e2fb2',
950: '#000000',
},
}SCSS
$custom: #7e2fb2; $custom-light: #a86fca; $custom-dark: #000000;
JSON
{
"hex": "#7e2fb2",
"rgb": {
"r": 126,
"g": 47,
"b": 178
},
"hsl": {
"h": 276.183,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.48407,
"c": 0.19814,
"h": 308.1
},
"luminance": 0.09683
}Semantic roles & 50–950 ramp
primary
#7E2FB2
secondary
#96C677
accent
#E14684
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82