#AA21B0#AA21B0

#AA21B0 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.226 H 326.2°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AA21B0
RGBrgb(170, 33, 176)
HSLhsl(297, 68%, 41%)
HSVhsv(297, 81%, 69%)
CMYKcmyk(3.4%, 81.3%, 0%, 31%)
CIE-LABlab(42.41, 68.39, -45.12)
CIE-LCHlch(42.41, 81.93, 326.58°)
OKLaboklab(53.37% 0.1879 -0.1257)
OKLCHoklch(53.37% 0.226 326.2)
XYZxyz(24.9574, 12.7701, 42.2163)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA21B0 #27B021
analogous
#6321B0 #AA21B0 #B0216E
triadic
#AA21B0 #B0AA21 #21B0AA
tetradic
#AA21B0 #B06321 #27B021 #216EB0
square
#AA21B0 #B06321 #27B021 #216EB0
split-complementary
#AA21B0 #6EB021 #21B063
monochromatic
#460E49 #78177C #AA21B0 #D235D9 #DE69E3

Accessibility & contrast

On white

5.91
#AA21B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AA21B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA21B0
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA21B0#FFFFFF#000000##FFFFFF
##AA21B01.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#466AAD
Tritanopia (blue-blind)
#AE3D6A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #aa21b0;
/* rgb */ color: rgb(170, 33, 176);
/* oklch */ color: oklch(53.4% 0.226 326.2);
Tailwind
colors: {
  custom: {
    50: '#c76fc8',
    500: '#aa21b0',
    950: '#000000',
  },
}
SCSS
$custom: #aa21b0;
$custom-light: #c76fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#aa21b0",
  "rgb": {
    "r": 170,
    "g": 33,
    "b": 176
  },
  "hsl": {
    "h": 297.483,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53372,
    "c": 0.22604,
    "h": 326.2
  },
  "luminance": 0.12768
}

Semantic roles & 50–950 ramp

primary
#AA21B0
secondary
#69C864
accent
#EB3D44
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140813
muted
#827B82

Preview Lab

Preview with #AA21B0

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

Preview Lab → · Contrast checker → · Palette generator →

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