#A852E1#A852E1

#A852E1 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.8% C 0.214 H 309.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#A852E1
RGBrgb(168, 82, 225)
HSLhsl(276, 70%, 60%)
HSVhsv(276, 64%, 88%)
CMYKcmyk(25.3%, 63.6%, 0%, 11.8%)
CIE-LABlab(51.61, 59.14, -58.73)
CIE-LCHlch(51.61, 83.35, 315.20°)
OKLaboklab(60.85% 0.1347 -0.1659)
OKLCHoklch(60.85% 0.214 309.1)
XYZxyz(32.7537, 19.7962, 73.3152)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A852E1 #8BE152
analogous
#6152E1 #A852E1 #E152D2
triadic
#A852E1 #E1A852 #52E1A8
tetradic
#A852E1 #E16152 #8BE152 #52D2E1
square
#A852E1 #E16152 #8BE152 #52D2E1
split-complementary
#A852E1 #D2E152 #52E161
monochromatic
#691B9D #8C24D1 #A852E1 #C286EA #DCBAF3

Accessibility & contrast

On white

4.23
#A852E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#A852E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A852E1
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A852E1#FFFFFF#000000##000000
##A852E11.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#3C7CDE
Tritanopia (blue-blind)
#A06F92
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a852e1;
/* rgb */ color: rgb(168, 82, 225);
/* oklch */ color: oklch(60.8% 0.214 309.1);
Tailwind
colors: {
  custom: {
    50: '#c688eb',
    500: '#a852e1',
    950: '#000000',
  },
}
SCSS
$custom: #a852e1;
$custom-light: #c688eb;
$custom-dark: #000000;
JSON
{
  "hex": "#a852e1",
  "rgb": {
    "r": 168,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 276.084,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60847,
    "c": 0.21369,
    "h": 309.1
  },
  "luminance": 0.19796
}

Semantic roles & 50–950 ramp

primary
#A852E1
secondary
#C2E3AC
accent
#D2135F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A852E1

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

Preview Lab → · Contrast checker → · Palette generator →

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