#7852CD#7852CD

#7852CD is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.182 H 293.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7852CD
RGBrgb(120, 82, 205)
HSLhsl(259, 55%, 56%)
HSVhsv(259, 60%, 80%)
CMYKcmyk(41.5%, 60%, 0%, 19.6%)
CIE-LABlab(44.85, 43.68, -58.49)
CIE-LCHlch(44.85, 73.00, 306.75°)
OKLaboklab(54.31% 0.0731 -0.1667)
OKLCHoklch(54.31% 0.182 293.7)
XYZxyz(21.7795, 14.4349, 59.3845)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852CD #A7CD52
analogous
#526ACD #7852CD #B652CD
triadic
#7852CD #CD7852 #52CD78
tetradic
#7852CD #CD526A #A7CD52 #52CDB6
square
#7852CD #CD526A #A7CD52 #52CDB6
split-complementary
#7852CD #CDB652 #6ACD52
monochromatic
#412580 #5933AF #7852CD #9D81DB #C2B1E8

Accessibility & contrast

On white

5.40
#7852CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7852CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852CD
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852CD#FFFFFF#000000##FFFFFF
##7852CD1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0868CA
Tritanopia (blue-blind)
#616D88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7852cd;
/* rgb */ color: rgb(120, 82, 205);
/* oklch */ color: oklch(54.3% 0.182 293.7);
Tailwind
colors: {
  custom: {
    50: '#a484dd',
    500: '#7852cd',
    950: '#000000',
  },
}
SCSS
$custom: #7852cd;
$custom-light: #a484dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7852cd",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 258.537,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54311,
    "c": 0.182,
    "h": 293.7
  },
  "luminance": 0.14435
}

Semantic roles & 50–950 ramp

primary
#7852CD
secondary
#C7D7A4
accent
#DE49B0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7852CD

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

Preview Lab → · Contrast checker → · Palette generator →

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