#7E2EB0#7E2EB0
#7E2EB0 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.2% C 0.197 H 308.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2EB0 |
|---|---|
| RGB | rgb(126, 46, 176) |
| HSL | hsl(277, 59%, 44%) |
| HSV | hsv(277, 74%, 69%) |
| CMYK | cmyk(28.4%, 73.9%, 0%, 31%) |
| CIE-LAB | lab(36.98, 55.65, -54.24) |
| CIE-LCH | lch(36.98, 77.71, 315.74°) |
| OKLab | oklab(48.15% 0.1236 -0.1538) |
| OKLCH | oklch(48.15% 0.197 308.8) |
| XYZ | xyz(17.4161, 9.5245, 41.9868) |
| Luminance | 0.0952 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.11
Rebeccapurple
#663399
ΔE00 5.11
Darkviolet
#9400D3
ΔE00 5.64
Darkorchid
#9932CC
ΔE00 6.17
Purply
#983FB2
ΔE00 6.68
Blueviolet
#8A2BE2
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2EB0 #60B02E
analogous
#3D2EB0 #7E2EB0 #B02EA1
triadic
#7E2EB0 #B07E2E #2EB07E
tetradic
#7E2EB0 #B03D2E #60B02E #2EA1B0
square
#7E2EB0 #B03D2E #60B02E #2EA1B0
split-complementary
#7E2EB0 #A1B02E #2EB03D
monochromatic
#39154F #5B217F #7E2EB0 #9D4BD0 #B77CDD
Accessibility & contrast
On white
7.23
#7E2EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#7E2EB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2EB0
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2EB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2EB0 | 1.00 | 7.23 | 2.90 | 7.23 |
| #FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0458AD
Tritanopia (blue-blind)
#764C6D
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7e2eb0; /* rgb */ color: rgb(126, 46, 176); /* oklch */ color: oklch(48.2% 0.197 308.8);
Tailwind
colors: {
custom: {
50: '#a86fc8',
500: '#7e2eb0',
950: '#000000',
},
}SCSS
$custom: #7e2eb0; $custom-light: #a86fc8; $custom-dark: #000000;
JSON
{
"hex": "#7e2eb0",
"rgb": {
"r": 126,
"g": 46,
"b": 176
},
"hsl": {
"h": 276.923,
"s": 58.559,
"l": 43.529
},
"oklch": {
"l": 0.48154,
"c": 0.1973,
"h": 308.8
},
"luminance": 0.09524
}Semantic roles & 50–950 ramp
primary
#7E2EB0
secondary
#94C575
accent
#E24682
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82