#7852CC#7852CC

#7852CC is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.2% C 0.181 H 293.9°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7852CC
RGBrgb(120, 82, 204)
HSLhsl(259, 54%, 56%)
HSVhsv(259, 60%, 80%)
CMYKcmyk(41.2%, 59.8%, 0%, 20%)
CIE-LABlab(44.78, 43.41, -58.03)
CIE-LCHlch(44.78, 72.47, 306.80°)
OKLaboklab(54.24% 0.0731 -0.1653)
OKLCHoklch(54.24% 0.181 293.9)
XYZxyz(21.6592, 14.3867, 58.7508)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852CC #A6CC52
analogous
#5269CC #7852CC #B552CC
triadic
#7852CC #CC7852 #52CC78
tetradic
#7852CC #CC5269 #A6CC52 #52CCB5
square
#7852CC #CC5269 #A6CC52 #52CCB5
split-complementary
#7852CC #CCB552 #69CC52
monochromatic
#41257E #5933AE #7852CC #9D81DA #C2B1E8

Accessibility & contrast

On white

5.42
#7852CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7852CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852CC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852CC#FFFFFF#000000##FFFFFF
##7852CC1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#0D68C9
Tritanopia (blue-blind)
#626D87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7852cc;
/* rgb */ color: rgb(120, 82, 204);
/* oklch */ color: oklch(54.2% 0.181 293.9);
Tailwind
colors: {
  custom: {
    50: '#a484dc',
    500: '#7852cc',
    950: '#000000',
  },
}
SCSS
$custom: #7852cc;
$custom-light: #a484dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7852cc",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 258.689,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5424,
    "c": 0.18076,
    "h": 293.9
  },
  "luminance": 0.14387
}

Semantic roles & 50–950 ramp

primary
#7852CC
secondary
#C6D6A4
accent
#DE4AB0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7852CC

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

Preview Lab → · Contrast checker → · Palette generator →

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