#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
RGBrgb(120, 82, 226)
HSLhsl(256, 71%, 60%)
HSVhsv(256, 64%, 89%)
CMYKcmyk(46.9%, 63.7%, 0%, 11.4%)
CIE-LABlab(46.34, 49.46, -68.08)
CIE-LCHlch(46.34, 84.15, 306.00°)
OKLaboklab(55.86% 0.0716 -0.1949)
OKLCHoklch(55.86% 0.208 290.2)
XYZxyz(24.4866, 15.5177, 73.6418)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

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
##7852E21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.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

Preview Lab

Preview with #7852E2

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

Preview Lab → · Contrast checker → · Palette generator →

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