#7852EA#7852EA

#7852EA is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.217 H 289.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7852EA
RGBrgb(120, 82, 234)
HSLhsl(255, 78%, 62%)
HSVhsv(255, 65%, 92%)
CMYKcmyk(48.7%, 65%, 0%, 8.2%)
CIE-LABlab(46.93, 51.69, -71.64)
CIE-LCHlch(46.93, 88.34, 305.81°)
OKLaboklab(56.48% 0.0707 -0.2053)
OKLCHoklch(56.48% 0.217 289)
XYZxyz(25.6100, 15.9671, 79.5585)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852EA #C4EA52
analogous
#5278EA #7852EA #C452EA
triadic
#7852EA #EA7852 #52EA78
tetradic
#7852EA #EA5278 #C4EA52 #52EAC4
square
#7852EA #EA5278 #C4EA52 #52EAC4
split-complementary
#7852EA #EAC452 #78EA52
monochromatic
#3B15AD #4D1CE3 #7852EA #A389F1 #CDBFF7

Accessibility & contrast

On white

5.01
#7852EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7852EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852EA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852EA#FFFFFF#000000##FFFFFF
##7852EA1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#006BE7
Tritanopia (blue-blind)
#517797
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7852ea;
/* rgb */ color: rgb(120, 82, 234);
/* oklch */ color: oklch(56.5% 0.217 289.0);
Tailwind
colors: {
  custom: {
    50: '#a885f2',
    500: '#7852ea',
    950: '#000000',
  },
}
SCSS
$custom: #7852ea;
$custom-light: #a885f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7852ea",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 255,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56477,
    "c": 0.21715,
    "h": 289
  },
  "luminance": 0.15968
}

Semantic roles & 50–950 ramp

primary
#7852EA
secondary
#DAE8B0
accent
#DB0BA7
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7852EA

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

Preview Lab → · Contrast checker → · Palette generator →

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