#AA20B1#AA20B1

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

Color values

HEX#AA20B1
RGBrgb(170, 32, 177)
HSLhsl(297, 69%, 41%)
HSVhsv(297, 82%, 69%)
CMYKcmyk(4%, 81.9%, 0%, 30.6%)
CIE-LABlab(42.39, 68.79, -45.75)
CIE-LCHlch(42.39, 82.62, 326.37°)
OKLaboklab(53.37% 0.1885 -0.1275)
OKLCHoklch(53.37% 0.228 325.9)
XYZxyz(25.0294, 12.7552, 42.7301)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA20B1 #27B120
analogous
#6120B1 #AA20B1 #B12070
triadic
#AA20B1 #B1AA20 #20B1AA
tetradic
#AA20B1 #B16120 #27B120 #2070B1
square
#AA20B1 #B16120 #27B120 #2070B1
split-complementary
#AA20B1 #70B120 #20B161
monochromatic
#460D49 #78177D #AA20B1 #D234DA #DE68E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AA20B1#FFFFFF#000000##FFFFFF
##AA20B11.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)
#0059B5
Deuteranopia (green-blind)
#456AAE
Tritanopia (blue-blind)
#AE3D6A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #aa20b1;
/* rgb */ color: rgb(170, 32, 177);
/* oklch */ color: oklch(53.4% 0.228 325.9);
Tailwind
colors: {
  custom: {
    50: '#c86fc9',
    500: '#aa20b1',
    950: '#000000',
  },
}
SCSS
$custom: #aa20b1;
$custom-light: #c86fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa20b1",
  "rgb": {
    "r": 170,
    "g": 32,
    "b": 177
  },
  "hsl": {
    "h": 297.103,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53375,
    "c": 0.22755,
    "h": 325.9
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#AA20B1
secondary
#69C964
accent
#EC3C44
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140813
muted
#827B82

Preview Lab

Preview with #AA20B1

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

Preview Lab → · Contrast checker → · Palette generator →

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