#7F52D4#7F52D4
#7F52D4 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.5% C 0.191 H 295.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52D4 |
|---|---|
| RGB | rgb(127, 82, 212) |
| HSL | hsl(261, 60%, 58%) |
| HSV | hsv(261, 61%, 83%) |
| CMYK | cmyk(40.1%, 61.3%, 0%, 16.9%) |
| CIE-LAB | lab(46.04, 47.06, -60.55) |
| CIE-LCH | lch(46.04, 76.69, 307.86°) |
| OKLab | oklab(55.5% 0.082 -0.1725) |
| OKLCH | oklch(55.5% 0.191 295.4) |
| XYZ | xyz(23.6502, 15.2996, 63.9817) |
| Luminance | 0.1530 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.97
Light Indigo
#6D5ACF
ΔE00 4.09
Slate Blue
#6A5ACD
ΔE00 4.62
Bluish Purple
#703BE7
ΔE00 6.07
Iris
#6258C4
ΔE00 6.08
Dark Periwinkle
#665FD1
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52D4 #A7D452
analogous
#5266D4 #7F52D4 #C052D4
triadic
#7F52D4 #D47F52 #52D47F
tetradic
#7F52D4 #D45266 #A7D452 #52D4C0
square
#7F52D4 #D45266 #A7D452 #52D4C0
split-complementary
#7F52D4 #D4C052 #66D452
monochromatic
#462289 #5F2EBA #7F52D4 #A383E0 #C8B4EC
Accessibility & contrast
On white
5.17
#7F52D4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#7F52D4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52D4
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52D4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52D4 | 1.00 | 5.17 | 4.06 | 5.17 |
| #FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#026BD1
Tritanopia (blue-blind)
#696F8B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7f52d4; /* rgb */ color: rgb(127, 82, 212); /* oklch */ color: oklch(55.5% 0.191 295.4);
Tailwind
colors: {
custom: {
50: '#aa85e2',
500: '#7f52d4',
950: '#000000',
},
}SCSS
$custom: #7f52d4; $custom-light: #aa85e2; $custom-dark: #000000;
JSON
{
"hex": "#7f52d4",
"rgb": {
"r": 127,
"g": 82,
"b": 212
},
"hsl": {
"h": 260.769,
"s": 60.185,
"l": 57.647
},
"oklch": {
"l": 0.55497,
"c": 0.19101,
"h": 295.4
},
"luminance": 0.153
}Semantic roles & 50–950 ramp
primary
#7F52D4
secondary
#C9DBA7
accent
#E344AC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83