#AB229B#AB229B

#AB229B is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.4% C 0.211 H 333.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AB229B
RGBrgb(171, 34, 155)
HSLhsl(307, 67%, 40%)
HSVhsv(307, 80%, 67%)
CMYKcmyk(0%, 80.1%, 9.4%, 32.9%)
CIE-LABlab(41.49, 65.07, -34.03)
CIE-LCHlch(41.49, 73.43, 332.39°)
OKLaboklab(52.36% 0.1887 -0.0934)
OKLCHoklch(52.36% 0.211 333.7)
XYZxyz(23.2832, 12.1706, 32.1269)
Luminance0.1217 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB229B #22AB32
analogous
#7622AB #AB229B #AB2257
triadic
#AB229B #9BAB22 #229BAB
tetradic
#AB229B #AB7622 #22AB32 #2257AB
square
#AB229B #AB7622 #22AB32 #2257AB
split-complementary
#AB229B #57AB22 #22AB76
monochromatic
#450E3E #78186D #AB229B #D734C4 #E167D2

Accessibility & contrast

On white

6.12
#AB229B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB229B
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB229B#FFFFFF#000000##FFFFFF
##AB229B1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C559E
Deuteranopia (green-blind)
#546998
Tritanopia (blue-blind)
#B3325E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab229b;
/* rgb */ color: rgb(171, 34, 155);
/* oklch */ color: oklch(52.4% 0.211 333.7);
Tailwind
colors: {
  custom: {
    50: '#c86fb9',
    500: '#ab229b',
    950: '#000000',
  },
}
SCSS
$custom: #ab229b;
$custom-light: #c86fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab229b",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 307.007,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52361,
    "c": 0.21052,
    "h": 333.7
  },
  "luminance": 0.12169
}

Semantic roles & 50–950 ramp

primary
#AB229B
secondary
#63C66E
accent
#EA523E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB229B

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

Preview Lab → · Contrast checker → · Palette generator →

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