#7E52BF#7E52BF
#7E52BF is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.165 H 299.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).
Color values
| HEX | #7E52BF |
|---|---|
| RGB | rgb(126, 82, 191) |
| HSL | hsl(264, 46%, 54%) |
| HSV | hsv(264, 57%, 75%) |
| CMYK | cmyk(34%, 57.1%, 0%, 25.1%) |
| CIE-LAB | lab(44.56, 41.33, -50.82) |
| CIE-LCH | lch(44.56, 65.51, 309.12°) |
| OKLab | oklab(53.95% 0.0813 -0.1439) |
| OKLCH | oklch(53.95% 0.165 299.4) |
| XYZ | xyz(21.0232, 14.2316, 50.9195) |
| Luminance | 0.1423 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.81
Light Indigo
#6D5ACF
ΔE00 5.23
Deep Lavender
#8D5EB7
ΔE00 5.38
Slate Blue
#6A5ACD
ΔE00 5.54
Purpley
#8756E4
ΔE00 5.86
Iris
#6258C4
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E52BF #93BF52
analogous
#525CBF #7E52BF #B452BF
triadic
#7E52BF #BF7E52 #52BF7E
tetradic
#7E52BF #BF525C #93BF52 #52BFB4
square
#7E52BF #BF525C #93BF52 #52BFB4
split-complementary
#7E52BF #BFB452 #5CBF52
monochromatic
#45296E #61399B #7E52BF #9F7FD0 #C1ABE0
Accessibility & contrast
On white
5.46
#7E52BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#7E52BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E52BF
5.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E52BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E52BF | 1.00 | 5.46 | 3.85 | 5.46 |
| #FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F69C3
Deuteranopia (green-blind)
#3169BD
Tritanopia (blue-blind)
#706880
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #7e52bf; /* rgb */ color: rgb(126, 82, 191); /* oklch */ color: oklch(54.0% 0.165 299.4);
Tailwind
colors: {
custom: {
50: '#a784d3',
500: '#7e52bf',
950: '#000000',
},
}SCSS
$custom: #7e52bf; $custom-light: #a784d3; $custom-dark: #000000;
JSON
{
"hex": "#7e52bf",
"rgb": {
"r": 126,
"g": 82,
"b": 191
},
"hsl": {
"h": 264.22,
"s": 45.992,
"l": 53.529
},
"oklch": {
"l": 0.53954,
"c": 0.16529,
"h": 299.4
},
"luminance": 0.14232
}Semantic roles & 50–950 ramp
primary
#7E52BF
secondary
#BBCE9F
accent
#D652A1
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83