#A852EE#A852EE

#A852EE is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.7% C 0.227 H 306.1°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#A852EE
RGBrgb(168, 82, 238)
HSLhsl(273, 82%, 63%)
HSVhsv(273, 66%, 93%)
CMYKcmyk(29.4%, 65.5%, 0%, 6.7%)
CIE-LABlab(52.43, 62.02, -64.72)
CIE-LCHlch(52.43, 89.64, 313.78°)
OKLaboklab(61.71% 0.1338 -0.1834)
OKLCHoklch(61.71% 0.227 306.1)
XYZxyz(34.5950, 20.5328, 83.0131)
Luminance0.2053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A852EE #98EE52
analogous
#5A52EE #A852EE #EE52E6
triadic
#A852EE #EEA852 #52EEA8
tetradic
#A852EE #EE5A52 #98EE52 #52E6EE
square
#A852EE #EE5A52 #98EE52 #52E6EE
split-complementary
#A852EE #E6EE52 #52EE5A
monochromatic
#6B12B4 #8C1AE9 #A852EE #C48AF3 #E0C1F9

Accessibility & contrast

On white

4.11
#A852EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#A852EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A852EE
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A852EE#FFFFFF#000000##000000
##A852EE1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF3
Deuteranopia (green-blind)
#287EEB
Tritanopia (blue-blind)
#9C7499
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a852ee;
/* rgb */ color: rgb(168, 82, 238);
/* oklch */ color: oklch(61.7% 0.227 306.1);
Tailwind
colors: {
  custom: {
    50: '#c788f4',
    500: '#a852ee',
    950: '#000000',
  },
}
SCSS
$custom: #a852ee;
$custom-light: #c788f4;
$custom-dark: #000000;
JSON
{
  "hex": "#a852ee",
  "rgb": {
    "r": 168,
    "g": 82,
    "b": 238
  },
  "hsl": {
    "h": 273.077,
    "s": 82.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61708,
    "c": 0.22703,
    "h": 306.1
  },
  "luminance": 0.20532
}

Semantic roles & 50–950 ramp

primary
#A852EE
secondary
#CBEAB2
accent
#DE0768
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #A852EE

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

Preview Lab → · Contrast checker → · Palette generator →

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