#AB2D8E#AB2D8E

#AB2D8E is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.5% C 0.191 H 338.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AB2D8E
RGBrgb(171, 45, 142)
HSLhsl(314, 58%, 42%)
HSVhsv(314, 74%, 67%)
CMYKcmyk(0%, 73.7%, 17%, 32.9%)
CIE-LABlab(41.98, 59.90, -25.38)
CIE-LCHlch(41.98, 65.05, 337.04°)
OKLaboklab(52.51% 0.1778 -0.0687)
OKLCHoklch(52.51% 0.191 338.9)
XYZxyz(22.6160, 12.4899, 26.8056)
Luminance0.1249 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D8E #2DAB4A
analogous
#892DAB #AB2D8E #AB2D4F
triadic
#AB2D8E #8EAB2D #2D8EAB
tetradic
#AB2D8E #AB892D #2DAB4A #2D4FAB
square
#AB2D8E #AB892D #2DAB4A #2D4FAB
split-complementary
#AB2D8E #4FAB2D #2DAB89
monochromatic
#4A143E #7B2066 #AB2D8E #CE47AF #DB77C4

Accessibility & contrast

On white

6.00
#AB2D8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AB2D8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D8E
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D8E#FFFFFF#000000##FFFFFF
##AB2D8E1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345691
Deuteranopia (green-blind)
#5D6A8B
Tritanopia (blue-blind)
#B5325A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2d8e;
/* rgb */ color: rgb(171, 45, 142);
/* oklch */ color: oklch(52.5% 0.191 338.9);
Tailwind
colors: {
  custom: {
    50: '#c872af',
    500: '#ab2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d8e;
$custom-light: #c872af;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d8e",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 313.81,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5251,
    "c": 0.19062,
    "h": 338.9
  },
  "luminance": 0.12488
}

Semantic roles & 50–950 ramp

primary
#AB2D8E
secondary
#71C384
accent
#E26A46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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