#7F52CB#7F52CB
#7F52CB is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.180 H 297.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52CB |
|---|---|
| RGB | rgb(127, 82, 203) |
| HSL | hsl(262, 54%, 56%) |
| HSV | hsv(262, 60%, 80%) |
| CMYK | cmyk(37.4%, 59.6%, 0%, 20.4%) |
| CIE-LAB | lab(45.44, 44.69, -56.35) |
| CIE-LCH | lch(45.44, 71.92, 308.42°) |
| OKLab | oklab(54.87% 0.0824 -0.1602) |
| OKLCH | oklch(54.87% 0.18 297.2) |
| XYZ | xyz(22.5464, 14.8581, 58.1684) |
| Luminance | 0.1486 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.10
Light Indigo
#6D5ACF
ΔE00 4.36
Slate Blue
#6A5ACD
ΔE00 4.82
Royal Purple
#7851A9
ΔE00 5.69
Iris
#6258C4
ΔE00 5.99
Deep Lavender
#8D5EB7
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52CB #9ECB52
analogous
#5261CB #7F52CB #BB52CB
triadic
#7F52CB #CB7F52 #52CB7F
tetradic
#7F52CB #CB5261 #9ECB52 #52CBBB
square
#7F52CB #CB5261 #9ECB52 #52CBBB
split-complementary
#7F52CB #CBBB52 #61CB52
monochromatic
#46267D #6034AC #7F52CB #A281D9 #C5B0E7
Accessibility & contrast
On white
5.29
#7F52CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.97
#7F52CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52CB
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52CB | 1.00 | 5.29 | 3.97 | 5.29 |
| #FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#206AC8
Tritanopia (blue-blind)
#6D6C87
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #7f52cb; /* rgb */ color: rgb(127, 82, 203); /* oklch */ color: oklch(54.9% 0.180 297.2);
Tailwind
colors: {
custom: {
50: '#a984dc',
500: '#7f52cb',
950: '#000000',
},
}SCSS
$custom: #7f52cb; $custom-light: #a984dc; $custom-dark: #000000;
JSON
{
"hex": "#7f52cb",
"rgb": {
"r": 127,
"g": 82,
"b": 203
},
"hsl": {
"h": 262.314,
"s": 53.778,
"l": 55.882
},
"oklch": {
"l": 0.54866,
"c": 0.18013,
"h": 297.2
},
"luminance": 0.14858
}Semantic roles & 50–950 ramp
primary
#7F52CB
secondary
#C3D5A3
accent
#DD4BA7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83