#A852EC#A852EC

#A852EC is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.6% C 0.225 H 306.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#A852EC
RGBrgb(168, 82, 236)
HSLhsl(274, 80%, 62%)
HSVhsv(274, 65%, 93%)
CMYKcmyk(28.8%, 65.3%, 0%, 7.5%)
CIE-LABlab(52.30, 61.57, -63.81)
CIE-LCHlch(52.30, 88.67, 313.98°)
OKLaboklab(61.57% 0.134 -0.1808)
OKLCHoklch(61.57% 0.225 306.5)
XYZxyz(34.3028, 20.4159, 81.4742)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A852EC #96EC52
analogous
#5B52EC #A852EC #EC52E3
triadic
#A852EC #ECA852 #52ECA8
tetradic
#A852EC #EC5B52 #96EC52 #52E3EC
square
#A852EC #EC5B52 #96EC52 #52E3EC
split-complementary
#A852EC #E3EC52 #52EC5B
monochromatic
#6B13B0 #8C1BE6 #A852EC #C489F2 #DFC0F8

Accessibility & contrast

On white

4.13
#A852EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#A852EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A852EC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A852EC#FFFFFF#000000##000000
##A852EC1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#2C7DE9
Tritanopia (blue-blind)
#9D7398
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a852ec;
/* rgb */ color: rgb(168, 82, 236);
/* oklch */ color: oklch(61.6% 0.225 306.5);
Tailwind
colors: {
  custom: {
    50: '#c688f3',
    500: '#a852ec',
    950: '#000000',
  },
}
SCSS
$custom: #a852ec;
$custom-light: #c688f3;
$custom-dark: #000000;
JSON
{
  "hex": "#a852ec",
  "rgb": {
    "r": 168,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 273.506,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61573,
    "c": 0.22498,
    "h": 306.5
  },
  "luminance": 0.20416
}

Semantic roles & 50–950 ramp

primary
#A852EC
secondary
#CAE9B1
accent
#DD0966
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A852EC

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

Preview Lab → · Contrast checker → · Palette generator →

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