#7852CE#7852CE

#7852CE is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.183 H 293.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7852CE
RGBrgb(120, 82, 206)
HSLhsl(258, 56%, 56%)
HSVhsv(258, 60%, 81%)
CMYKcmyk(41.7%, 60.2%, 0%, 19.2%)
CIE-LABlab(44.92, 43.95, -58.96)
CIE-LCHlch(44.92, 73.54, 306.70°)
OKLaboklab(54.38% 0.0731 -0.168)
OKLCHoklch(54.38% 0.183 293.5)
XYZxyz(21.9006, 14.4833, 60.0222)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852CE #A8CE52
analogous
#526ACE #7852CE #B652CE
triadic
#7852CE #CE7852 #52CE78
tetradic
#7852CE #CE526A #A8CE52 #52CEB6
square
#7852CE #CE526A #A8CE52 #52CEB6
split-complementary
#7852CE #CEB652 #6ACE52
monochromatic
#412581 #5932B1 #7852CE #9D82DC #C2B1E9

Accessibility & contrast

On white

5.39
#7852CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7852CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852CE
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852CE#FFFFFF#000000##FFFFFF
##7852CE1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#0368CB
Tritanopia (blue-blind)
#616E88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7852ce;
/* rgb */ color: rgb(120, 82, 206);
/* oklch */ color: oklch(54.4% 0.183 293.5);
Tailwind
colors: {
  custom: {
    50: '#a584de',
    500: '#7852ce',
    950: '#000000',
  },
}
SCSS
$custom: #7852ce;
$custom-light: #a584de;
$custom-dark: #000000;
JSON
{
  "hex": "#7852ce",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 258.387,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54382,
    "c": 0.18324,
    "h": 293.5
  },
  "luminance": 0.14484
}

Semantic roles & 50–950 ramp

primary
#7852CE
secondary
#C8D7A4
accent
#DF49B1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7852CE

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

Preview Lab → · Contrast checker → · Palette generator →

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