#7E2BA9#7E2BA9
#7E2BA9 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.194 H 311.2°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2BA9 |
|---|---|
| RGB | rgb(126, 43, 169) |
| HSL | hsl(280, 59%, 42%) |
| HSV | hsv(280, 75%, 66%) |
| CMYK | cmyk(25.4%, 74.6%, 0%, 33.7%) |
| CIE-LAB | lab(36.04, 55.34, -51.58) |
| CIE-LCH | lch(36.04, 75.65, 317.02°) |
| OKLab | oklab(47.33% 0.1276 -0.146) |
| OKLCH | oklch(47.33% 0.194 311.2) |
| XYZ | xyz(16.6281, 9.0284, 38.3951) |
| Luminance | 0.0903 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.89
Rebeccapurple
#663399
ΔE00 4.77
Darkviolet
#9400D3
ΔE00 6.35
Purply
#983FB2
ΔE00 6.94
Darkorchid
#9932CC
ΔE00 7.00
Darkmagenta
#8B008B
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2BA9 #56A92B
analogous
#3F2BA9 #7E2BA9 #A92B95
triadic
#7E2BA9 #A97E2B #2BA97E
tetradic
#7E2BA9 #A93F2B #56A92B #2B95A9
square
#7E2BA9 #A93F2B #56A92B #2B95A9
split-complementary
#7E2BA9 #95A92B #2BA93F
monochromatic
#351247 #5A1F78 #7E2BA9 #9F42CF #B873DB
Accessibility & contrast
On white
7.49
#7E2BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#7E2BA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2BA9
7.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2BA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2BA9 | 1.00 | 7.49 | 2.81 | 7.49 |
| #FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#1456A6
Tritanopia (blue-blind)
#784868
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7e2ba9; /* rgb */ color: rgb(126, 43, 169); /* oklch */ color: oklch(47.3% 0.194 311.2);
Tailwind
colors: {
custom: {
50: '#a86dc3',
500: '#7e2ba9',
950: '#000000',
},
}SCSS
$custom: #7e2ba9; $custom-light: #a86dc3; $custom-dark: #000000;
JSON
{
"hex": "#7e2ba9",
"rgb": {
"r": 126,
"g": 43,
"b": 169
},
"hsl": {
"h": 279.524,
"s": 59.434,
"l": 41.569
},
"oklch": {
"l": 0.47331,
"c": 0.19391,
"h": 311.2
},
"luminance": 0.09028
}Semantic roles & 50–950 ramp
primary
#7E2BA9
secondary
#8AC36D
accent
#E3457B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82