#7852CA#7852CA

#7852CA is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.1% C 0.178 H 294.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7852CA
RGBrgb(120, 82, 202)
HSLhsl(259, 53%, 56%)
HSVhsv(259, 59%, 79%)
CMYKcmyk(40.6%, 59.4%, 0%, 20.8%)
CIE-LABlab(44.65, 42.86, -57.09)
CIE-LCHlch(44.65, 71.39, 306.90°)
OKLaboklab(54.1% 0.0732 -0.1625)
OKLCHoklch(54.1% 0.178 294.2)
XYZxyz(21.4209, 14.2914, 57.4956)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852CA #A4CA52
analogous
#5268CA #7852CA #B452CA
triadic
#7852CA #CA7852 #52CA78
tetradic
#7852CA #CA5268 #A4CA52 #52CAB4
square
#7852CA #CA5268 #A4CA52 #52CAB4
split-complementary
#7852CA #CAB452 #68CA52
monochromatic
#41267C #5A34AB #7852CA #9D81D8 #C1B0E7

Accessibility & contrast

On white

5.44
#7852CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7852CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852CA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852CA#FFFFFF#000000##FFFFFF
##7852CA1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#1468C7
Tritanopia (blue-blind)
#636C86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7852ca;
/* rgb */ color: rgb(120, 82, 202);
/* oklch */ color: oklch(54.1% 0.178 294.2);
Tailwind
colors: {
  custom: {
    50: '#a484db',
    500: '#7852ca',
    950: '#000000',
  },
}
SCSS
$custom: #7852ca;
$custom-light: #a484db;
$custom-dark: #000000;
JSON
{
  "hex": "#7852ca",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 259,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54098,
    "c": 0.17828,
    "h": 294.2
  },
  "luminance": 0.14292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7852CA

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

Preview Lab → · Contrast checker → · Palette generator →

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