#7E2FCA#7E2FCA
#7E2FCA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.222 H 301.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2FCA |
|---|---|
| RGB | rgb(126, 47, 202) |
| HSL | hsl(271, 62%, 49%) |
| HSV | hsv(271, 77%, 79%) |
| CMYK | cmyk(37.6%, 76.7%, 0%, 20.8%) |
| CIE-LAB | lab(39.13, 61.16, -66.02) |
| CIE-LCH | lch(39.13, 89.99, 312.81°) |
| OKLab | oklab(50.3% 0.1171 -0.1885) |
| OKLCH | oklch(50.3% 0.222 301.8) |
| XYZ | xyz(20.2788, 10.7328, 56.8689) |
| Luminance | 0.1073 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 3.56
Darkviolet
#9400D3
ΔE00 4.13
Burple
#6832E3
ΔE00 4.81
Darkorchid
#9932CC
ΔE00 5.05
Bluish Purple
#703BE7
ΔE00 5.18
Violet (survey)
#9A0EEA
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2FCA #7BCA2F
analogous
#312FCA #7E2FCA #CA2FC9
triadic
#7E2FCA #CA7E2F #2FCA7E
tetradic
#7E2FCA #CA312F #7BCA2F #2FC9CA
square
#7E2FCA #CA312F #7BCA2F #2FC9CA
split-complementary
#7E2FCA #C9CA2F #2FCA31
monochromatic
#401867 #5F2398 #7E2FCA #9C5DD9 #BB8FE5
Accessibility & contrast
On white
6.67
#7E2FCA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#7E2FCA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E2FCA
6.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2FCA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2FCA | 1.00 | 6.67 | 3.15 | 6.67 |
| #FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#6D587C
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #7e2fca; /* rgb */ color: rgb(126, 47, 202); /* oklch */ color: oklch(50.3% 0.222 301.8);
Tailwind
colors: {
custom: {
50: '#aa70db',
500: '#7e2fca',
950: '#000000',
},
}SCSS
$custom: #7e2fca; $custom-light: #aa70db; $custom-dark: #000000;
JSON
{
"hex": "#7e2fca",
"rgb": {
"r": 126,
"g": 47,
"b": 202
},
"hsl": {
"h": 270.581,
"s": 62.249,
"l": 48.824
},
"oklch": {
"l": 0.50297,
"c": 0.22188,
"h": 301.8
},
"luminance": 0.10733
}Semantic roles & 50–950 ramp
primary
#7E2FCA
secondary
#AACF86
accent
#E54292
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83