#7852F2#7852F2
#7852F2 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.227 H 287.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #7852F2 |
|---|---|
| RGB | rgb(120, 82, 242) |
| HSL | hsl(254, 86%, 64%) |
| HSV | hsv(254, 66%, 95%) |
| CMYK | cmyk(50.4%, 66.1%, 0%, 5.1%) |
| CIE-LAB | lab(47.54, 53.92, -75.14) |
| CIE-LCH | lch(47.54, 92.48, 305.66°) |
| OKLab | oklab(57.11% 0.0697 -0.2156) |
| OKLCH | oklch(57.11% 0.227 287.9) |
| XYZ | xyz(26.7853, 16.4372, 85.7485) |
| Luminance | 0.1644 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.27
Light Indigo
#6D5ACF
ΔE00 5.30
Purpleish Blue
#6140EF
ΔE00 5.60
Slate Blue
#6A5ACD
ΔE00 5.77
Bluish Purple
#703BE7
ΔE00 5.87
Mediumslateblue
#7B68EE
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7852F2 #CCF252
analogous
#527CF2 #7852F2 #C852F2
triadic
#7852F2 #F27852 #52F278
tetradic
#7852F2 #F2527C #CCF252 #52F2C8
square
#7852F2 #F2527C #CCF252 #52F2C8
split-complementary
#7852F2 #F2C852 #7CF252
monochromatic
#370EBC #4C19EE #7852F2 #A48BF6 #D1C4FB
Accessibility & contrast
On white
4.90
#7852F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#7852F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7852F2
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7852F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7852F2 | 1.00 | 4.90 | 4.29 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#4B7A9B
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7852f2; /* rgb */ color: rgb(120, 82, 242); /* oklch */ color: oklch(57.1% 0.227 287.9);
Tailwind
colors: {
custom: {
50: '#a985f7',
500: '#7852f2',
950: '#000000',
},
}SCSS
$custom: #7852f2; $custom-light: #a985f7; $custom-dark: #000000;
JSON
{
"hex": "#7852f2",
"rgb": {
"r": 120,
"g": 82,
"b": 242
},
"hsl": {
"h": 254.25,
"s": 86.022,
"l": 63.529
},
"oklch": {
"l": 0.57108,
"c": 0.22659,
"h": 287.9
},
"luminance": 0.16438
}Semantic roles & 50–950 ramp
primary
#7852F2
secondary
#DFECB4
accent
#E303AD
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85