#A221A8#A221A8

#A221A8 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.7% C 0.217 H 326.1°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#A221A8
RGBrgb(162, 33, 168)
HSLhsl(297, 67%, 39%)
HSVhsv(297, 80%, 66%)
CMYKcmyk(3.6%, 80.4%, 0%, 34.1%)
CIE-LABlab(40.57, 65.52, -43.39)
CIE-LCHlch(40.57, 78.59, 326.49°)
OKLaboklab(51.65% 0.1799 -0.1208)
OKLCHoklch(51.65% 0.217 326.1)
XYZxyz(22.5116, 11.5978, 38.0911)
Luminance0.1160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A221A8 #27A821
analogous
#5E21A8 #A221A8 #A8216B
triadic
#A221A8 #A8A221 #21A8A2
tetradic
#A221A8 #A85E21 #27A821 #216BA8
square
#A221A8 #A85E21 #27A821 #216BA8
split-complementary
#A221A8 #6BA821 #21A85E
monochromatic
#3F0D42 #711775 #A221A8 #CF30D6 #DB63E0

Accessibility & contrast

On white

6.33
#A221A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#A221A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A221A8
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A221A8#FFFFFF#000000##FFFFFF
##A221A81.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#4365A5
Tritanopia (blue-blind)
#A63B65
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a221a8;
/* rgb */ color: rgb(162, 33, 168);
/* oklch */ color: oklch(51.7% 0.217 326.1);
Tailwind
colors: {
  custom: {
    50: '#c26ec2',
    500: '#a221a8',
    950: '#000000',
  },
}
SCSS
$custom: #a221a8;
$custom-light: #c26ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#a221a8",
  "rgb": {
    "r": 162,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 297.333,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51651,
    "c": 0.21667,
    "h": 326.1
  },
  "luminance": 0.11596
}

Semantic roles & 50–950 ramp

primary
#A221A8
secondary
#64C55F
accent
#EA3E45
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A221A8

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

Preview Lab → · Contrast checker → · Palette generator →

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