#A021A8#A021A8

#A021A8 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.216 H 325.4°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#A021A8
RGBrgb(160, 33, 168)
HSLhsl(296, 67%, 39%)
HSVhsv(296, 80%, 66%)
CMYKcmyk(4.8%, 80.4%, 0%, 34.1%)
CIE-LABlab(40.23, 65.13, -43.95)
CIE-LCHlch(40.23, 78.57, 325.99°)
OKLaboklab(51.35% 0.1777 -0.1225)
OKLCHoklch(51.35% 0.216 325.4)
XYZxyz(22.1084, 11.3900, 38.0722)
Luminance0.1139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A021A8 #29A821
analogous
#5C21A8 #A021A8 #A8216D
triadic
#A021A8 #A8A021 #21A8A0
tetradic
#A021A8 #A85C21 #29A821 #216DA8
square
#A021A8 #A85C21 #29A821 #216DA8
split-complementary
#A021A8 #6DA821 #21A85C
monochromatic
#3F0D42 #6F1775 #A021A8 #CC30D6 #D963E0

Accessibility & contrast

On white

6.41
#A021A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A021A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A021A8
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A021A8#FFFFFF#000000##FFFFFF
##A021A81.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#4164A5
Tritanopia (blue-blind)
#A43B65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a021a8;
/* rgb */ color: rgb(160, 33, 168);
/* oklch */ color: oklch(51.3% 0.216 325.4);
Tailwind
colors: {
  custom: {
    50: '#c06dc2',
    500: '#a021a8',
    950: '#000000',
  },
}
SCSS
$custom: #a021a8;
$custom-light: #c06dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a021a8",
  "rgb": {
    "r": 160,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 296.444,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51345,
    "c": 0.21582,
    "h": 325.4
  },
  "luminance": 0.11388
}

Semantic roles & 50–950 ramp

primary
#A021A8
secondary
#65C55F
accent
#EA3E48
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A021A8

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

Preview Lab → · Contrast checker → · Palette generator →

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