#7852EC#7852EC

#7852EC is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.6% C 0.220 H 288.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7852EC
RGBrgb(120, 82, 236)
HSLhsl(255, 80%, 62%)
HSVhsv(255, 65%, 93%)
CMYKcmyk(49.2%, 65.3%, 0%, 7.5%)
CIE-LABlab(47.08, 52.25, -72.52)
CIE-LCHlch(47.08, 89.38, 305.77°)
OKLaboklab(56.63% 0.0705 -0.2079)
OKLCHoklch(56.63% 0.22 288.7)
XYZxyz(25.8990, 16.0827, 81.0802)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852EC #C6EC52
analogous
#5279EC #7852EC #C552EC
triadic
#7852EC #EC7852 #52EC78
tetradic
#7852EC #EC5279 #C6EC52 #52ECC5
square
#7852EC #EC5279 #C6EC52 #52ECC5
split-complementary
#7852EC #ECC552 #79EC52
monochromatic
#3A13B0 #4D1BE6 #7852EC #A389F2 #CEC0F8

Accessibility & contrast

On white

4.98
#7852EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7852EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852EC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852EC#FFFFFF#000000##FFFFFF
##7852EC1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#507898
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7852ec;
/* rgb */ color: rgb(120, 82, 236);
/* oklch */ color: oklch(56.6% 0.220 288.7);
Tailwind
colors: {
  custom: {
    50: '#a885f3',
    500: '#7852ec',
    950: '#000000',
  },
}
SCSS
$custom: #7852ec;
$custom-light: #a885f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7852ec",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 254.805,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56634,
    "c": 0.21953,
    "h": 288.7
  },
  "luminance": 0.16084
}

Semantic roles & 50–950 ramp

primary
#7852EC
secondary
#DBE9B1
accent
#DD09A8
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7852EC

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#7852EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva