#7852DF#7852DF

#7852DF is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.6% C 0.204 H 290.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7852DF
RGBrgb(120, 82, 223)
HSLhsl(256, 69%, 60%)
HSVhsv(256, 63%, 87%)
CMYKcmyk(46.2%, 63.2%, 0%, 12.5%)
CIE-LABlab(46.12, 48.63, -66.74)
CIE-LCHlch(46.12, 82.58, 306.08°)
OKLaboklab(55.63% 0.0719 -0.1909)
OKLCHoklch(55.63% 0.204 290.6)
XYZxyz(24.0786, 15.3545, 71.4928)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852DF #B9DF52
analogous
#5273DF #7852DF #BE52DF
triadic
#7852DF #DF7852 #52DF78
tetradic
#7852DF #DF5273 #B9DF52 #52DFBE
square
#7852DF #DF5273 #B9DF52 #52DFBE
split-complementary
#7852DF #DFBE52 #73DF52
monochromatic
#3E1D9A #5326CE #7852DF #A086E9 #C9B9F2

Accessibility & contrast

On white

5.16
#7852DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7852DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852DF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852DF#FFFFFF#000000##FFFFFF
##7852DF1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#006ADC
Tritanopia (blue-blind)
#587391
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7852df;
/* rgb */ color: rgb(120, 82, 223);
/* oklch */ color: oklch(55.6% 0.204 290.6);
Tailwind
colors: {
  custom: {
    50: '#a685ea',
    500: '#7852df',
    950: '#000000',
  },
}
SCSS
$custom: #7852df;
$custom-light: #a685ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7852df",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 256.17,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.55632,
    "c": 0.204,
    "h": 290.6
  },
  "luminance": 0.15355
}

Semantic roles & 50–950 ramp

primary
#7852DF
secondary
#D3E2AB
accent
#EC3CBC
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7852DF

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

Preview Lab → · Contrast checker → · Palette generator →

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