#7852CB#7852CB

#7852CB is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.180 H 294.1°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7852CB
RGBrgb(120, 82, 203)
HSLhsl(259, 54%, 56%)
HSVhsv(259, 60%, 80%)
CMYKcmyk(40.9%, 59.6%, 0%, 20.4%)
CIE-LABlab(44.72, 43.14, -57.56)
CIE-LCHlch(44.72, 71.93, 306.85°)
OKLaboklab(54.17% 0.0732 -0.1639)
OKLCHoklch(54.17% 0.18 294.1)
XYZxyz(21.5396, 14.3389, 58.1212)
Luminance0.1434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852CB #A5CB52
analogous
#5268CB #7852CB #B452CB
triadic
#7852CB #CB7852 #52CB78
tetradic
#7852CB #CB5268 #A5CB52 #52CBB4
square
#7852CB #CB5268 #A5CB52 #52CBB4
split-complementary
#7852CB #CBB452 #68CB52
monochromatic
#41267D #5A34AC #7852CB #9D81D9 #C1B0E7

Accessibility & contrast

On white

5.43
#7852CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7852CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852CB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852CB#FFFFFF#000000##FFFFFF
##7852CB1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#1168C8
Tritanopia (blue-blind)
#626D87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7852cb;
/* rgb */ color: rgb(120, 82, 203);
/* oklch */ color: oklch(54.2% 0.180 294.1);
Tailwind
colors: {
  custom: {
    50: '#a484dc',
    500: '#7852cb',
    950: '#000000',
  },
}
SCSS
$custom: #7852cb;
$custom-light: #a484dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7852cb",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 258.843,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54169,
    "c": 0.17952,
    "h": 294.1
  },
  "luminance": 0.14339
}

Semantic roles & 50–950 ramp

primary
#7852CB
secondary
#C6D5A3
accent
#DD4BAF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7852CB

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

Preview Lab → · Contrast checker → · Palette generator →

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