#A021A6#A021A6

#A021A6 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.2% C 0.214 H 326.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#A021A6
RGBrgb(160, 33, 166)
HSLhsl(297, 67%, 39%)
HSVhsv(297, 80%, 65%)
CMYKcmyk(3.6%, 80.1%, 0%, 34.9%)
CIE-LABlab(40.11, 64.80, -42.95)
CIE-LCHlch(40.11, 77.74, 326.46°)
OKLaboklab(51.22% 0.1778 -0.1196)
OKLCHoklch(51.22% 0.214 326.1)
XYZxyz(21.9236, 11.3160, 37.0985)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A021A6 #27A621
analogous
#5E21A6 #A021A6 #A6216A
triadic
#A021A6 #A6A021 #21A6A0
tetradic
#A021A6 #A65E21 #27A621 #216AA6
square
#A021A6 #A65E21 #27A621 #216AA6
split-complementary
#A021A6 #6AA621 #21A65E
monochromatic
#3E0D40 #6F1773 #A021A6 #CE2FD6 #DA62E0

Accessibility & contrast

On white

6.44
#A021A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A021A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A021A6
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A021A6#FFFFFF#000000##FFFFFF
##A021A61.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#4264A3
Tritanopia (blue-blind)
#A43A64
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a021a6;
/* rgb */ color: rgb(160, 33, 166);
/* oklch */ color: oklch(51.2% 0.214 326.1);
Tailwind
colors: {
  custom: {
    50: '#c06dc1',
    500: '#a021a6',
    950: '#000000',
  },
}
SCSS
$custom: #a021a6;
$custom-light: #c06dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a021a6",
  "rgb": {
    "r": 160,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 297.293,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5122,
    "c": 0.21429,
    "h": 326.1
  },
  "luminance": 0.11314
}

Semantic roles & 50–950 ramp

primary
#A021A6
secondary
#63C55E
accent
#EA3E46
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A021A6

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

Preview Lab → · Contrast checker → · Palette generator →

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