#AB229C#AB229C

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

Color values

HEX#AB229C
RGBrgb(171, 34, 156)
HSLhsl(307, 67%, 40%)
HSVhsv(307, 80%, 67%)
CMYKcmyk(0%, 80.1%, 8.8%, 32.9%)
CIE-LABlab(41.54, 65.22, -34.55)
CIE-LCHlch(41.54, 73.80, 332.08°)
OKLaboklab(52.42% 0.1887 -0.0949)
OKLCHoklch(52.42% 0.211 333.3)
XYZxyz(23.3675, 12.2043, 32.5710)
Luminance0.1220 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB229C #22AB31
analogous
#7522AB #AB229C #AB2258
triadic
#AB229C #9CAB22 #229CAB
tetradic
#AB229C #AB7522 #22AB31 #2258AB
square
#AB229C #AB7522 #22AB31 #2258AB
split-complementary
#AB229C #58AB22 #22AB75
monochromatic
#450E3F #78186D #AB229C #D734C5 #E167D3

Accessibility & contrast

On white

6.10
#AB229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AB229C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB229C
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB229C#FFFFFF#000000##FFFFFF
##AB229C1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B569F
Deuteranopia (green-blind)
#536999
Tritanopia (blue-blind)
#B3325F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab229c;
/* rgb */ color: rgb(171, 34, 156);
/* oklch */ color: oklch(52.4% 0.211 333.3);
Tailwind
colors: {
  custom: {
    50: '#c86fb9',
    500: '#ab229c',
    950: '#000000',
  },
}
SCSS
$custom: #ab229c;
$custom-light: #c86fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab229c",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 306.569,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52416,
    "c": 0.21122,
    "h": 333.3
  },
  "luminance": 0.12202
}

Semantic roles & 50–950 ramp

primary
#AB229C
secondary
#63C66D
accent
#EA513E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB229C

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

Preview Lab → · Contrast checker → · Palette generator →

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