#7E2FAF#7E2FAF
#7E2FAF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.195 H 309.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2FAF |
|---|---|
| RGB | rgb(126, 47, 175) |
| HSL | hsl(277, 58%, 44%) |
| HSV | hsv(277, 73%, 69%) |
| CMYK | cmyk(28%, 73.1%, 0%, 31.4%) |
| CIE-LAB | lab(37.05, 55.01, -53.52) |
| CIE-LCH | lch(37.05, 76.75, 315.79°) |
| OKLab | oklab(48.18% 0.1227 -0.1517) |
| OKLCH | oklch(48.18% 0.195 309) |
| XYZ | xyz(17.3570, 9.5641, 41.4808) |
| Luminance | 0.0956 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.09
Rebeccapurple
#663399
ΔE00 5.04
Darkviolet
#9400D3
ΔE00 5.81
Darkorchid
#9932CC
ΔE00 6.19
Purply
#983FB2
ΔE00 6.55
Blueviolet
#8A2BE2
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2FAF #60AF2F
analogous
#3E2FAF #7E2FAF #AF2FA0
triadic
#7E2FAF #AF7E2F #2FAF7E
tetradic
#7E2FAF #AF3E2F #60AF2F #2FA0AF
square
#7E2FAF #AF3E2F #60AF2F #2FA0AF
split-complementary
#7E2FAF #A0AF2F #2FAF3E
monochromatic
#39154F #5B227F #7E2FAF #9D4CCF #B77CDC
Accessibility & contrast
On white
7.21
#7E2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#7E2FAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2FAF
7.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2FAF | 1.00 | 7.21 | 2.91 | 7.21 |
| #FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0B58AC
Tritanopia (blue-blind)
#774D6C
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7e2faf; /* rgb */ color: rgb(126, 47, 175); /* oklch */ color: oklch(48.2% 0.195 309.0);
Tailwind
colors: {
custom: {
50: '#a86fc8',
500: '#7e2faf',
950: '#000000',
},
}SCSS
$custom: #7e2faf; $custom-light: #a86fc8; $custom-dark: #000000;
JSON
{
"hex": "#7e2faf",
"rgb": {
"r": 126,
"g": 47,
"b": 175
},
"hsl": {
"h": 277.031,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.48183,
"c": 0.19517,
"h": 309
},
"luminance": 0.09564
}Semantic roles & 50–950 ramp
primary
#7E2FAF
secondary
#94C475
accent
#E14782
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82