#AB20B3#AB20B3

#AB20B3 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.7% C 0.229 H 325.6°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AB20B3
RGBrgb(171, 32, 179)
HSLhsl(297, 70%, 41%)
HSVhsv(297, 82%, 70%)
CMYKcmyk(4.5%, 82.1%, 0%, 29.8%)
CIE-LABlab(42.68, 69.31, -46.46)
CIE-LCHlch(42.68, 83.44, 326.17°)
OKLaboklab(53.65% 0.1894 -0.1295)
OKLCHoklch(53.65% 0.229 325.6)
XYZxyz(25.4472, 12.9474, 43.7979)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB20B3 #28B320
analogous
#6220B3 #AB20B3 #B32072
triadic
#AB20B3 #B3AB20 #20B3AB
tetradic
#AB20B3 #B36220 #28B320 #2072B3
square
#AB20B3 #B36220 #28B320 #2072B3
split-complementary
#AB20B3 #72B320 #20B362
monochromatic
#480D4B #79177F #AB20B3 #D235DB #DE69E4

Accessibility & contrast

On white

5.85
#AB20B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB20B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB20B3
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB20B3#FFFFFF#000000##FFFFFF
##AB20B31.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#456AB0
Tritanopia (blue-blind)
#AF3E6C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab20b3;
/* rgb */ color: rgb(171, 32, 179);
/* oklch */ color: oklch(53.7% 0.229 325.6);
Tailwind
colors: {
  custom: {
    50: '#c86fca',
    500: '#ab20b3',
    950: '#000000',
  },
}
SCSS
$custom: #ab20b3;
$custom-light: #c86fca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab20b3",
  "rgb": {
    "r": 171,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 296.735,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53653,
    "c": 0.22945,
    "h": 325.6
  },
  "luminance": 0.12946
}

Semantic roles & 50–950 ramp

primary
#AB20B3
secondary
#6ACA65
accent
#EC3B45
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140813
muted
#827B82

Preview Lab

Preview with #AB20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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