#7852CD#7852CD
#7852CD is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.182 H 293.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #7852CD |
|---|---|
| RGB | rgb(120, 82, 205) |
| HSL | hsl(259, 55%, 56%) |
| HSV | hsv(259, 60%, 80%) |
| CMYK | cmyk(41.5%, 60%, 0%, 19.6%) |
| CIE-LAB | lab(44.85, 43.68, -58.49) |
| CIE-LCH | lch(44.85, 73.00, 306.75°) |
| OKLab | oklab(54.31% 0.0731 -0.1667) |
| OKLCH | oklch(54.31% 0.182 293.7) |
| XYZ | xyz(21.7795, 14.4349, 59.3845) |
| Luminance | 0.1444 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.25
Slate Blue
#6A5ACD
ΔE00 3.65
Purpley
#8756E4
ΔE00 4.38
Iris
#6258C4
ΔE00 4.77
Dark Periwinkle
#665FD1
ΔE00 5.46
Bluey Purple
#6241C7
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7852CD #A7CD52
analogous
#526ACD #7852CD #B652CD
triadic
#7852CD #CD7852 #52CD78
tetradic
#7852CD #CD526A #A7CD52 #52CDB6
square
#7852CD #CD526A #A7CD52 #52CDB6
split-complementary
#7852CD #CDB652 #6ACD52
monochromatic
#412580 #5933AF #7852CD #9D81DB #C2B1E8
Accessibility & contrast
On white
5.40
#7852CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#7852CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7852CD
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7852CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7852CD | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0868CA
Tritanopia (blue-blind)
#616D88
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7852cd; /* rgb */ color: rgb(120, 82, 205); /* oklch */ color: oklch(54.3% 0.182 293.7);
Tailwind
colors: {
custom: {
50: '#a484dd',
500: '#7852cd',
950: '#000000',
},
}SCSS
$custom: #7852cd; $custom-light: #a484dd; $custom-dark: #000000;
JSON
{
"hex": "#7852cd",
"rgb": {
"r": 120,
"g": 82,
"b": 205
},
"hsl": {
"h": 258.537,
"s": 55.157,
"l": 56.275
},
"oklch": {
"l": 0.54311,
"c": 0.182,
"h": 293.7
},
"luminance": 0.14435
}Semantic roles & 50–950 ramp
primary
#7852CD
secondary
#C7D7A4
accent
#DE49B0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83