#AB229D#AB229D

#AB229D is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.5% C 0.212 H 332.9°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AB229D
RGBrgb(171, 34, 157)
HSLhsl(306, 67%, 40%)
HSVhsv(306, 80%, 67%)
CMYKcmyk(0%, 80.1%, 8.2%, 32.9%)
CIE-LABlab(41.59, 65.36, -35.07)
CIE-LCHlch(41.59, 74.18, 331.78°)
OKLaboklab(52.47% 0.1887 -0.0964)
OKLCHoklch(52.47% 0.212 332.9)
XYZxyz(23.4526, 12.2384, 33.0188)
Luminance0.1224 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB229D #22AB30
analogous
#7422AB #AB229D #AB2259
triadic
#AB229D #9DAB22 #229DAB
tetradic
#AB229D #AB7422 #22AB30 #2259AB
square
#AB229D #AB7422 #22AB30 #2259AB
split-complementary
#AB229D #59AB22 #22AB74
monochromatic
#450E3F #78186E #AB229D #D734C6 #E167D4

Accessibility & contrast

On white

6.09
#AB229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AB229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB229D
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB229D#FFFFFF#000000##FFFFFF
##AB229D1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1956A0
Deuteranopia (green-blind)
#53699A
Tritanopia (blue-blind)
#B3335F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab229d;
/* rgb */ color: rgb(171, 34, 157);
/* oklch */ color: oklch(52.5% 0.212 332.9);
Tailwind
colors: {
  custom: {
    50: '#c86fba',
    500: '#ab229d',
    950: '#000000',
  },
}
SCSS
$custom: #ab229d;
$custom-light: #c86fba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab229d",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 306.131,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52471,
    "c": 0.21192,
    "h": 332.9
  },
  "luminance": 0.12236
}

Semantic roles & 50–950 ramp

primary
#AB229D
secondary
#63C66D
accent
#EA503E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB229D

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

Preview Lab → · Contrast checker → · Palette generator →

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