#7F52CC#7F52CC
#7F52CC is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.181 H 297.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52CC |
|---|---|
| RGB | rgb(127, 82, 204) |
| HSL | hsl(262, 54%, 56%) |
| HSV | hsv(262, 60%, 80%) |
| CMYK | cmyk(37.7%, 59.8%, 0%, 20%) |
| CIE-LAB | lab(45.51, 44.95, -56.82) |
| CIE-LCH | lch(45.51, 72.46, 308.35°) |
| OKLab | oklab(54.94% 0.0824 -0.1615) |
| OKLCH | oklch(54.94% 0.181 297) |
| XYZ | xyz(22.6660, 14.9059, 58.7980) |
| Luminance | 0.1491 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.96
Light Indigo
#6D5ACF
ΔE00 4.31
Slate Blue
#6A5ACD
ΔE00 4.77
Royal Purple
#7851A9
ΔE00 5.84
Iris
#6258C4
ΔE00 5.98
Deep Lavender
#8D5EB7
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52CC #9FCC52
analogous
#5262CC #7F52CC #BC52CC
triadic
#7F52CC #CC7F52 #52CC7F
tetradic
#7F52CC #CC5262 #9FCC52 #52CCBC
square
#7F52CC #CC5262 #9FCC52 #52CCBC
split-complementary
#7F52CC #CCBC52 #62CC52
monochromatic
#46257E #6033AE #7F52CC #A281DA #C5B1E8
Accessibility & contrast
On white
5.27
#7F52CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#7F52CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52CC
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52CC | 1.00 | 5.27 | 3.98 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#1E6AC9
Tritanopia (blue-blind)
#6D6C87
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #7f52cc; /* rgb */ color: rgb(127, 82, 204); /* oklch */ color: oklch(54.9% 0.181 297.0);
Tailwind
colors: {
custom: {
50: '#a984dc',
500: '#7f52cc',
950: '#000000',
},
}SCSS
$custom: #7f52cc; $custom-light: #a984dc; $custom-dark: #000000;
JSON
{
"hex": "#7f52cc",
"rgb": {
"r": 127,
"g": 82,
"b": 204
},
"hsl": {
"h": 262.131,
"s": 54.464,
"l": 56.078
},
"oklch": {
"l": 0.54935,
"c": 0.18136,
"h": 297
},
"luminance": 0.14906
}Semantic roles & 50–950 ramp
primary
#7F52CC
secondary
#C4D6A4
accent
#DE4AA7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83