#A852E7#A852E7

#A852E7 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.2% C 0.220 H 307.7°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#A852E7
RGBrgb(168, 82, 231)
HSLhsl(275, 76%, 61%)
HSVhsv(275, 65%, 91%)
CMYKcmyk(27.3%, 64.5%, 0%, 9.4%)
CIE-LABlab(51.98, 60.46, -61.51)
CIE-LCHlch(51.98, 86.25, 314.51°)
OKLaboklab(61.24% 0.1344 -0.174)
OKLCHoklch(61.24% 0.22 307.7)
XYZxyz(33.5866, 20.1294, 77.7018)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A852E7 #91E752
analogous
#5E52E7 #A852E7 #E752DC
triadic
#A852E7 #E7A852 #52E7A8
tetradic
#A852E7 #E75E52 #91E752 #52DCE7
square
#A852E7 #E75E52 #91E752 #52DCE7
split-complementary
#A852E7 #DCE752 #52E75E
monochromatic
#6A17A7 #8D1FDD #A852E7 #C388EE #DEBDF6

Accessibility & contrast

On white

4.18
#A852E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#A852E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A852E7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A852E7#FFFFFF#000000##000000
##A852E71.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#347DE4
Tritanopia (blue-blind)
#9E7196
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a852e7;
/* rgb */ color: rgb(168, 82, 231);
/* oklch */ color: oklch(61.2% 0.220 307.7);
Tailwind
colors: {
  custom: {
    50: '#c688ef',
    500: '#a852e7',
    950: '#000000',
  },
}
SCSS
$custom: #a852e7;
$custom-light: #c688ef;
$custom-dark: #000000;
JSON
{
  "hex": "#a852e7",
  "rgb": {
    "r": 168,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 274.631,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.6124,
    "c": 0.21985,
    "h": 307.7
  },
  "luminance": 0.20129
}

Semantic roles & 50–950 ramp

primary
#A852E7
secondary
#C6E6AF
accent
#D80E63
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A852E7

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

Preview Lab → · Contrast checker → · Palette generator →

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