#7E46FF#7E46FF
#7E46FF is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.2% C 0.254 H 289.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #7E46FF |
|---|---|
| RGB | rgb(126, 70, 255) |
| HSL | hsl(258, 100%, 64%) |
| HSV | hsv(258, 73%, 100%) |
| CMYK | cmyk(50.6%, 72.5%, 0%, 0%) |
| CIE-LAB | lab(47.02, 64.35, -83.23) |
| CIE-LCH | lch(47.02, 105.20, 307.71°) |
| OKLab | oklab(57.2% 0.0856 -0.2391) |
| OKLCH | oklch(57.2% 0.254 289.7) |
| XYZ | xyz(28.8391, 16.0347, 96.1638) |
| Luminance | 0.1604 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.68
Bluish Purple
#703BE7
ΔE00 5.06
Purpleish Blue
#6140EF
ΔE00 5.23
Blueviolet
#8A2BE2
ΔE00 6.55
Violet
#8F00FF
ΔE00 6.64
Electric Purple
#AA23FF
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E46FF #C7FF46
analogous
#466AFF #7E46FF #DA46FF
triadic
#7E46FF #FF7E46 #46FF7E
tetradic
#7E46FF #FF466A #C7FF46 #46FFDA
square
#7E46FF #FF466A #C7FF46 #46FFDA
split-complementary
#7E46FF #FFDA46 #6AFF46
monochromatic
#3D00CB #5309FF #7E46FF #A983FF #D3C0FF
Accessibility & contrast
On white
4.99
#7E46FF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#7E46FF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E46FF
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E46FF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E46FF | 1.00 | 4.99 | 4.21 | 4.99 |
| #FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073FF
Deuteranopia (green-blind)
#006BFB
Tritanopia (blue-blind)
#4F789F
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7e46ff; /* rgb */ color: rgb(126, 70, 255); /* oklch */ color: oklch(57.2% 0.254 289.7);
Tailwind
colors: {
custom: {
50: '#af7fff',
500: '#7e46ff',
950: '#000000',
},
}SCSS
$custom: #7e46ff; $custom-light: #af7fff; $custom-dark: #000000;
JSON
{
"hex": "#7e46ff",
"rgb": {
"r": 126,
"g": 70,
"b": 255
},
"hsl": {
"h": 258.162,
"s": 100,
"l": 63.725
},
"oklch": {
"l": 0.57196,
"c": 0.25399,
"h": 289.7
},
"luminance": 0.16036
}Semantic roles & 50–950 ramp
primary
#7E46FF
secondary
#DDF1B0
accent
#E600A0
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120A18
muted
#817C86