#AA21BC#AA21BC

#AA21BC is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.1% C 0.235 H 322.6°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AA21BC
RGBrgb(170, 33, 188)
HSLhsl(293, 70%, 43%)
HSVhsv(293, 82%, 74%)
CMYKcmyk(9.6%, 82.4%, 0%, 26.3%)
CIE-LABlab(43.16, 70.39, -51.00)
CIE-LCHlch(43.16, 86.92, 324.08°)
OKLaboklab(54.14% 0.1867 -0.1428)
OKLCHoklch(54.14% 0.235 322.6)
XYZxyz(26.1976, 13.2662, 48.7480)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA21BC #33BC21
analogous
#5C21BC #AA21BC #BC2180
triadic
#AA21BC #BCAA21 #21BCAA
tetradic
#AA21BC #BC5C21 #33BC21 #2180BC
square
#AA21BC #BC5C21 #33BC21 #2180BC
split-complementary
#AA21BC #80BC21 #21BC5C
monochromatic
#4C0F54 #7B1888 #AA21BC #CA3DDD #D971E6

Accessibility & contrast

On white

5.75
#AA21BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AA21BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA21BC
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA21BC#FFFFFF#000000##FFFFFF
##AA21BC1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#3D6BB9
Tritanopia (blue-blind)
#AC4371
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #aa21bc;
/* rgb */ color: rgb(170, 33, 188);
/* oklch */ color: oklch(54.1% 0.235 322.6);
Tailwind
colors: {
  custom: {
    50: '#c870d1',
    500: '#aa21bc',
    950: '#000000',
  },
}
SCSS
$custom: #aa21bc;
$custom-light: #c870d1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa21bc",
  "rgb": {
    "r": 170,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 293.032,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54137,
    "c": 0.23505,
    "h": 322.6
  },
  "luminance": 0.13265
}

Semantic roles & 50–950 ramp

primary
#AA21BC
secondary
#77CD6C
accent
#ED3B50
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AA21BC

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

Preview Lab → · Contrast checker → · Palette generator →

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