#AB229F#AB229F

#AB229F is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.213 H 332.2°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AB229F
RGBrgb(171, 34, 159)
HSLhsl(305, 67%, 40%)
HSVhsv(305, 80%, 67%)
CMYKcmyk(0%, 80.1%, 7%, 32.9%)
CIE-LABlab(41.70, 65.67, -36.10)
CIE-LCHlch(41.70, 74.94, 331.20°)
OKLaboklab(52.58% 0.1887 -0.0994)
OKLCHoklch(52.58% 0.213 332.2)
XYZxyz(23.6247, 12.3072, 33.9254)
Luminance0.1231 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB229F #22AB2E
analogous
#7222AB #AB229F #AB225B
triadic
#AB229F #9FAB22 #229FAB
tetradic
#AB229F #AB7222 #22AB2E #225BAB
square
#AB229F #AB7222 #22AB2E #225BAB
split-complementary
#AB229F #5BAB22 #22AB72
monochromatic
#450E40 #781870 #AB229F #D734C8 #E167D6

Accessibility & contrast

On white

6.07
#AB229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB229F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB229F
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB229F#FFFFFF#000000##FFFFFF
##AB229F1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1656A2
Deuteranopia (green-blind)
#52699C
Tritanopia (blue-blind)
#B33461
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab229f;
/* rgb */ color: rgb(171, 34, 159);
/* oklch */ color: oklch(52.6% 0.213 332.2);
Tailwind
colors: {
  custom: {
    50: '#c86fbc',
    500: '#ab229f',
    950: '#000000',
  },
}
SCSS
$custom: #ab229f;
$custom-light: #c86fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab229f",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 305.255,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52583,
    "c": 0.21332,
    "h": 332.2
  },
  "luminance": 0.12305
}

Semantic roles & 50–950 ramp

primary
#AB229F
secondary
#63C66B
accent
#EA4D3E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB229F

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

Preview Lab → · Contrast checker → · Palette generator →

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