#AB2B9C#AB2B9C

#AB2B9C is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.1% C 0.203 H 333.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AB2B9C
RGBrgb(171, 43, 156)
HSLhsl(307, 60%, 42%)
HSVhsv(307, 75%, 67%)
CMYKcmyk(0%, 74.9%, 8.8%, 32.9%)
CIE-LABlab(42.44, 62.62, -33.13)
CIE-LCHlch(42.44, 70.85, 332.12°)
OKLaboklab(53.06% 0.1811 -0.0909)
OKLCHoklch(53.06% 0.203 333.3)
XYZxyz(23.6594, 12.7880, 32.6683)
Luminance0.1279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B9C #2BAB3A
analogous
#7A2BAB #AB2B9C #AB2B5C
triadic
#AB2B9C #9CAB2B #2B9CAB
tetradic
#AB2B9C #AB7A2B #2BAB3A #2B5CAB
square
#AB2B9C #AB7A2B #2BAB3A #2B5CAB
split-complementary
#AB2B9C #5CAB2B #2BAB7A
monochromatic
#491243 #7A1F6F #AB2B9C #D043BF #DC74D0

Accessibility & contrast

On white

5.90
#AB2B9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AB2B9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B9C
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B9C#FFFFFF#000000##FFFFFF
##AB2B9C1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589F
Deuteranopia (green-blind)
#576B99
Tritanopia (blue-blind)
#B33861
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2b9c;
/* rgb */ color: rgb(171, 43, 156);
/* oklch */ color: oklch(53.1% 0.203 333.3);
Tailwind
colors: {
  custom: {
    50: '#c872b9',
    500: '#ab2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b9c;
$custom-light: #c872b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b9c",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 307.031,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53063,
    "c": 0.2026,
    "h": 333.3
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

primary
#AB2B9C
secondary
#6EC478
accent
#E35745
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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