#7852E2#7852E2
#7852E2 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.9% C 0.208 H 290.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #7852E2 |
|---|---|
| RGB | rgb(120, 82, 226) |
| HSL | hsl(256, 71%, 60%) |
| HSV | hsv(256, 64%, 89%) |
| CMYK | cmyk(46.9%, 63.7%, 0%, 11.4%) |
| CIE-LAB | lab(46.34, 49.46, -68.08) |
| CIE-LCH | lch(46.34, 84.15, 306.00°) |
| OKLab | oklab(55.86% 0.0716 -0.1949) |
| OKLCH | oklch(55.86% 0.208 290.2) |
| XYZ | xyz(24.4866, 15.5177, 73.6418) |
| Luminance | 0.1552 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.92
Light Indigo
#6D5ACF
ΔE00 3.81
Slate Blue
#6A5ACD
ΔE00 4.31
Bluish Purple
#703BE7
ΔE00 5.29
Dark Periwinkle
#665FD1
ΔE00 5.42
Purpleish Blue
#6140EF
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7852E2 #BCE252
analogous
#5274E2 #7852E2 #C052E2
triadic
#7852E2 #E27852 #52E278
tetradic
#7852E2 #E25274 #BCE252 #52E2C0
square
#7852E2 #E25274 #BCE252 #52E2C0
split-complementary
#7852E2 #E2C052 #74E252
monochromatic
#3E1B9F #5223D3 #7852E2 #A186EB #CABBF4
Accessibility & contrast
On white
5.12
#7852E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#7852E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7852E2
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7852E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7852E2 | 1.00 | 5.12 | 4.10 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#567493
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7852e2; /* rgb */ color: rgb(120, 82, 226); /* oklch */ color: oklch(55.9% 0.208 290.2);
Tailwind
colors: {
custom: {
50: '#a785ec',
500: '#7852e2',
950: '#000000',
},
}SCSS
$custom: #7852e2; $custom-light: #a785ec; $custom-dark: #000000;
JSON
{
"hex": "#7852e2",
"rgb": {
"r": 120,
"g": 82,
"b": 226
},
"hsl": {
"h": 255.833,
"s": 71.287,
"l": 60.392
},
"oklch": {
"l": 0.5586,
"c": 0.20761,
"h": 290.2
},
"luminance": 0.15519
}Semantic roles & 50–950 ramp
primary
#7852E2
secondary
#D5E3AC
accent
#D312A0
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84