#7E2DB1#7E2DB1
#7E2DB1 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.199 H 308.6°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2DB1 |
|---|---|
| RGB | rgb(126, 45, 177) |
| HSL | hsl(277, 59%, 44%) |
| HSV | hsv(277, 75%, 69%) |
| CMYK | cmyk(28.8%, 74.6%, 0%, 30.6%) |
| CIE-LAB | lab(36.91, 56.28, -54.94) |
| CIE-LCH | lch(36.91, 78.65, 315.69°) |
| OKLab | oklab(48.13% 0.1243 -0.1559) |
| OKLCH | oklch(48.13% 0.199 308.6) |
| XYZ | xyz(17.4767, 9.4870, 42.4970) |
| Luminance | 0.0949 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.15
Rebeccapurple
#663399
ΔE00 5.20
Darkviolet
#9400D3
ΔE00 5.49
Darkorchid
#9932CC
ΔE00 6.16
Purply
#983FB2
ΔE00 6.81
Blueviolet
#8A2BE2
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2DB1 #60B12D
analogous
#3C2DB1 #7E2DB1 #B12DA2
triadic
#7E2DB1 #B17E2D #2DB17E
tetradic
#7E2DB1 #B13C2D #60B12D #2DA2B1
square
#7E2DB1 #B13C2D #60B12D #2DA2B1
split-complementary
#7E2DB1 #A2B12D #2DB13C
monochromatic
#39144F #5B2180 #7E2DB1 #9D4AD1 #B77BDD
Accessibility & contrast
On white
7.25
#7E2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#7E2DB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2DB1
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2DB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2DB1 | 1.00 | 7.25 | 2.90 | 7.25 |
| #FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0058AE
Tritanopia (blue-blind)
#764C6D
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7e2db1; /* rgb */ color: rgb(126, 45, 177); /* oklch */ color: oklch(48.1% 0.199 308.6);
Tailwind
colors: {
custom: {
50: '#a86ec9',
500: '#7e2db1',
950: '#000000',
},
}SCSS
$custom: #7e2db1; $custom-light: #a86ec9; $custom-dark: #000000;
JSON
{
"hex": "#7e2db1",
"rgb": {
"r": 126,
"g": 45,
"b": 177
},
"hsl": {
"h": 276.818,
"s": 59.459,
"l": 43.529
},
"oklch": {
"l": 0.48128,
"c": 0.19941,
"h": 308.6
},
"luminance": 0.09487
}Semantic roles & 50–950 ramp
primary
#7E2DB1
secondary
#94C674
accent
#E34582
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82