#AB229A#AB229A

#AB229A is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.3% C 0.210 H 334.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AB229A
RGBrgb(171, 34, 154)
HSLhsl(307, 67%, 40%)
HSVhsv(307, 80%, 67%)
CMYKcmyk(0%, 80.1%, 9.9%, 32.9%)
CIE-LABlab(41.43, 64.92, -33.51)
CIE-LCHlch(41.43, 73.06, 332.70°)
OKLaboklab(52.31% 0.1886 -0.0919)
OKLCHoklch(52.31% 0.21 334)
XYZxyz(23.1996, 12.1372, 31.6864)
Luminance0.1213 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB229A #22AB33
analogous
#7722AB #AB229A #AB2256
triadic
#AB229A #9AAB22 #229AAB
tetradic
#AB229A #AB7722 #22AB33 #2256AB
square
#AB229A #AB7722 #22AB33 #2256AB
split-complementary
#AB229A #56AB22 #22AB77
monochromatic
#450E3E #78186C #AB229A #D734C2 #E167D2

Accessibility & contrast

On white

6.13
#AB229A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AB229A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB229A
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB229A#FFFFFF#000000##FFFFFF
##AB229A1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E559D
Deuteranopia (green-blind)
#546997
Tritanopia (blue-blind)
#B3315E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab229a;
/* rgb */ color: rgb(171, 34, 154);
/* oklch */ color: oklch(52.3% 0.210 334.0);
Tailwind
colors: {
  custom: {
    50: '#c86fb8',
    500: '#ab229a',
    950: '#000000',
  },
}
SCSS
$custom: #ab229a;
$custom-light: #c86fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab229a",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 307.445,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52306,
    "c": 0.20982,
    "h": 334
  },
  "luminance": 0.12135
}

Semantic roles & 50–950 ramp

primary
#AB229A
secondary
#63C66F
accent
#EA533E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB229A

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

Preview Lab → · Contrast checker → · Palette generator →

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