#7E2FC8#7E2FC8
#7E2FC8 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.220 H 302.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2FC8 |
|---|---|
| RGB | rgb(126, 47, 200) |
| HSL | hsl(271, 62%, 48%) |
| HSV | hsv(271, 77%, 78%) |
| CMYK | cmyk(37%, 76.5%, 0%, 21.6%) |
| CIE-LAB | lab(38.97, 60.69, -65.12) |
| CIE-LCH | lch(38.97, 89.02, 312.98°) |
| OKLab | oklab(50.13% 0.1176 -0.1858) |
| OKLCH | oklch(50.13% 0.22 302.3) |
| XYZ | xyz(20.0435, 10.6387, 55.6299) |
| Luminance | 0.1064 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 3.80
Darkviolet
#9400D3
ΔE00 4.15
Burple
#6832E3
ΔE00 5.03
Darkorchid
#9932CC
ΔE00 5.05
Bluish Purple
#703BE7
ΔE00 5.44
Bluey Purple
#6241C7
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2FC8 #79C82F
analogous
#312FC8 #7E2FC8 #C82FC5
triadic
#7E2FC8 #C87E2F #2FC87E
tetradic
#7E2FC8 #C8312F #79C82F #2FC5C8
square
#7E2FC8 #C8312F #79C82F #2FC5C8
split-complementary
#7E2FC8 #C5C82F #2FC831
monochromatic
#401865 #5F2396 #7E2FC8 #9C5CD9 #BA8DE4
Accessibility & contrast
On white
6.71
#7E2FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#7E2FC8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E2FC8
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2FC8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2FC8 | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#6E577A
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #7e2fc8; /* rgb */ color: rgb(126, 47, 200); /* oklch */ color: oklch(50.1% 0.220 302.3);
Tailwind
colors: {
custom: {
50: '#aa70da',
500: '#7e2fc8',
950: '#000000',
},
}SCSS
$custom: #7e2fc8; $custom-light: #aa70da; $custom-dark: #000000;
JSON
{
"hex": "#7e2fc8",
"rgb": {
"r": 126,
"g": 47,
"b": 200
},
"hsl": {
"h": 270.98,
"s": 61.943,
"l": 48.431
},
"oklch": {
"l": 0.50133,
"c": 0.21989,
"h": 302.3
},
"luminance": 0.10639
}Semantic roles & 50–950 ramp
primary
#7E2FC8
secondary
#A8CF84
accent
#E54391
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83