#AB2B9E#AB2B9E

#AB2B9E is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.2% C 0.204 H 332.6°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AB2B9E
RGBrgb(171, 43, 158)
HSLhsl(306, 60%, 42%)
HSVhsv(306, 75%, 67%)
CMYKcmyk(0%, 74.9%, 7.6%, 32.9%)
CIE-LABlab(42.55, 62.93, -34.17)
CIE-LCHlch(42.55, 71.61, 331.50°)
OKLaboklab(53.17% 0.1812 -0.0939)
OKLCHoklch(53.17% 0.204 332.6)
XYZxyz(23.8301, 12.8563, 33.5676)
Luminance0.1285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B9E #2BAB38
analogous
#782BAB #AB2B9E #AB2B5E
triadic
#AB2B9E #9EAB2B #2B9EAB
tetradic
#AB2B9E #AB782B #2BAB38 #2B5EAB
square
#AB2B9E #AB782B #2BAB38 #2B5EAB
split-complementary
#AB2B9E #5EAB2B #2BAB78
monochromatic
#491244 #7A1F71 #AB2B9E #D043C2 #DC74D2

Accessibility & contrast

On white

5.88
#AB2B9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB2B9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B9E
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B9E#FFFFFF#000000##FFFFFF
##AB2B9E1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2459A1
Deuteranopia (green-blind)
#566B9B
Tritanopia (blue-blind)
#B33962
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2b9e;
/* rgb */ color: rgb(171, 43, 158);
/* oklch */ color: oklch(53.2% 0.204 332.6);
Tailwind
colors: {
  custom: {
    50: '#c872bb',
    500: '#ab2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b9e;
$custom-light: #c872bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b9e",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 306.094,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53171,
    "c": 0.20406,
    "h": 332.6
  },
  "luminance": 0.12854
}

Semantic roles & 50–950 ramp

primary
#AB2B9E
secondary
#6EC477
accent
#E35545
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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