#A852DC#A852DC

#A852DC is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.5% C 0.209 H 310.3°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A852DC
RGBrgb(168, 82, 220)
HSLhsl(277, 66%, 59%)
HSVhsv(277, 63%, 86%)
CMYKcmyk(23.6%, 62.7%, 0%, 13.7%)
CIE-LABlab(51.30, 58.05, -56.40)
CIE-LCHlch(51.30, 80.94, 315.83°)
OKLaboklab(60.53% 0.1349 -0.159)
OKLCHoklch(60.53% 0.209 310.3)
XYZxyz(32.0815, 19.5274, 69.7754)
Luminance0.1953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A852DC #86DC52
analogous
#6352DC #A852DC #DC52CB
triadic
#A852DC #DCA852 #52DCA8
tetradic
#A852DC #DC6352 #86DC52 #52CBDC
square
#A852DC #DC6352 #86DC52 #52CBDC
split-complementary
#A852DC #CBDC52 #52DC63
monochromatic
#681E95 #8C29C8 #A852DC #C285E6 #DBB8F1

Accessibility & contrast

On white

4.28
#A852DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#A852DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A852DC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A852DC#FFFFFF#000000##000000
##A852DC1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0676E0
Deuteranopia (green-blind)
#417CD9
Tritanopia (blue-blind)
#A16D90
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a852dc;
/* rgb */ color: rgb(168, 82, 220);
/* oklch */ color: oklch(60.5% 0.209 310.3);
Tailwind
colors: {
  custom: {
    50: '#c687e7',
    500: '#a852dc',
    950: '#000000',
  },
}
SCSS
$custom: #a852dc;
$custom-light: #c687e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a852dc",
  "rgb": {
    "r": 168,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 277.391,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60527,
    "c": 0.20856,
    "h": 310.3
  },
  "luminance": 0.19527
}

Semantic roles & 50–950 ramp

primary
#A852DC
secondary
#BEE0AA
accent
#E93F7F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A852DC

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

Preview Lab → · Contrast checker → · Palette generator →

#A852DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva