#7E2BA8#7E2BA8
#7E2BA8 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.193 H 311.5°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2BA8 |
|---|---|
| RGB | rgb(126, 43, 168) |
| HSL | hsl(280, 59%, 41%) |
| HSV | hsv(280, 74%, 66%) |
| CMYK | cmyk(25%, 74.4%, 0%, 34.1%) |
| CIE-LAB | lab(35.97, 55.12, -51.09) |
| CIE-LCH | lch(35.97, 75.16, 317.17°) |
| OKLab | oklab(47.26% 0.1278 -0.1446) |
| OKLCH | oklch(47.26% 0.193 311.5) |
| XYZ | xyz(16.5346, 8.9910, 37.9026) |
| Luminance | 0.0899 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.76
Rebeccapurple
#663399
ΔE00 4.73
Darkviolet
#9400D3
ΔE00 6.47
Purply
#983FB2
ΔE00 6.95
Darkmagenta
#8B008B
ΔE00 7.08
Darkorchid
#9932CC
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2BA8 #55A82B
analogous
#402BA8 #7E2BA8 #A82B94
triadic
#7E2BA8 #A87E2B #2BA87E
tetradic
#7E2BA8 #A8402B #55A82B #2B94A8
square
#7E2BA8 #A8402B #55A82B #2B94A8
split-complementary
#7E2BA8 #94A82B #2BA840
monochromatic
#351247 #591F77 #7E2BA8 #9F42CF #B872DB
Accessibility & contrast
On white
7.50
#7E2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#7E2BA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2BA8
7.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2BA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2BA8 | 1.00 | 7.50 | 2.80 | 7.50 |
| #FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#1656A5
Tritanopia (blue-blind)
#794867
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7e2ba8; /* rgb */ color: rgb(126, 43, 168); /* oklch */ color: oklch(47.3% 0.193 311.5);
Tailwind
colors: {
custom: {
50: '#a86dc3',
500: '#7e2ba8',
950: '#000000',
},
}SCSS
$custom: #7e2ba8; $custom-light: #a86dc3; $custom-dark: #000000;
JSON
{
"hex": "#7e2ba8",
"rgb": {
"r": 126,
"g": 43,
"b": 168
},
"hsl": {
"h": 279.84,
"s": 59.242,
"l": 41.373
},
"oklch": {
"l": 0.47257,
"c": 0.19295,
"h": 311.5
},
"luminance": 0.08991
}Semantic roles & 50–950 ramp
primary
#7E2BA8
secondary
#89C26C
accent
#E2457A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81