#7F52D5#7F52D5
#7F52D5 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.6% C 0.192 H 295.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52D5 |
|---|---|
| RGB | rgb(127, 82, 213) |
| HSL | hsl(261, 61%, 58%) |
| HSV | hsv(261, 62%, 84%) |
| CMYK | cmyk(40.4%, 61.5%, 0%, 16.5%) |
| CIE-LAB | lab(46.11, 47.33, -61.01) |
| CIE-LCH | lch(46.11, 77.22, 307.80°) |
| OKLab | oklab(55.57% 0.082 -0.1739) |
| OKLCH | oklch(55.57% 0.192 295.2) |
| XYZ | xyz(23.7768, 15.3502, 64.6480) |
| Luminance | 0.1535 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.86
Light Indigo
#6D5ACF
ΔE00 4.09
Slate Blue
#6A5ACD
ΔE00 4.63
Bluish Purple
#703BE7
ΔE00 6.02
Iris
#6258C4
ΔE00 6.11
Dark Periwinkle
#665FD1
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52D5 #A8D552
analogous
#5266D5 #7F52D5 #C152D5
triadic
#7F52D5 #D57F52 #52D57F
tetradic
#7F52D5 #D55266 #A8D552 #52D5C1
square
#7F52D5 #D55266 #A8D552 #52D5C1
split-complementary
#7F52D5 #D5C152 #66D552
monochromatic
#46228B #5F2EBC #7F52D5 #A383E1 #C8B4ED
Accessibility & contrast
On white
5.16
#7F52D5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#7F52D5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52D5
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52D5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52D5 | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#006BD2
Tritanopia (blue-blind)
#696F8C
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7f52d5; /* rgb */ color: rgb(127, 82, 213); /* oklch */ color: oklch(55.6% 0.192 295.2);
Tailwind
colors: {
custom: {
50: '#aa85e3',
500: '#7f52d5',
950: '#000000',
},
}SCSS
$custom: #7f52d5; $custom-light: #aa85e3; $custom-dark: #000000;
JSON
{
"hex": "#7f52d5",
"rgb": {
"r": 127,
"g": 82,
"b": 213
},
"hsl": {
"h": 260.611,
"s": 60.93,
"l": 57.843
},
"oklch": {
"l": 0.55569,
"c": 0.19221,
"h": 295.2
},
"luminance": 0.15351
}Semantic roles & 50–950 ramp
primary
#7F52D5
secondary
#CADCA7
accent
#E444AD
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#100B15
muted
#7F7C84