#AB2F8D#AB2F8D

#AB2F8D is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.6% C 0.188 H 339.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AB2F8D
RGBrgb(171, 47, 141)
HSLhsl(315, 57%, 43%)
HSVhsv(315, 73%, 67%)
CMYKcmyk(0%, 72.5%, 17.5%, 32.9%)
CIE-LABlab(42.18, 59.08, -24.46)
CIE-LCHlch(42.18, 63.94, 337.51°)
OKLaboklab(52.64% 0.1756 -0.0661)
OKLCHoklch(52.64% 0.188 339.4)
XYZxyz(22.6194, 12.6162, 26.4381)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F8D #2FAB4D
analogous
#8B2FAB #AB2F8D #AB2F4F
triadic
#AB2F8D #8DAB2F #2F8DAB
tetradic
#AB2F8D #AB8B2F #2FAB4D #2F4FAB
square
#AB2F8D #AB8B2F #2FAB4D #2F4FAB
split-complementary
#AB2F8D #4FAB2F #2FAB8B
monochromatic
#4B153E #7B2265 #AB2F8D #CD4AAD #DA7AC3

Accessibility & contrast

On white

5.96
#AB2F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB2F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F8D
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F8D#FFFFFF#000000##FFFFFF
##AB2F8D1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365790
Deuteranopia (green-blind)
#5F6B8A
Tritanopia (blue-blind)
#B5345A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2f8d;
/* rgb */ color: rgb(171, 47, 141);
/* oklch */ color: oklch(52.6% 0.188 339.4);
Tailwind
colors: {
  custom: {
    50: '#c873ae',
    500: '#ab2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f8d;
$custom-light: #c873ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f8d",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 314.516,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52636,
    "c": 0.18766,
    "h": 339.4
  },
  "luminance": 0.12614
}

Semantic roles & 50–950 ramp

primary
#AB2F8D
secondary
#73C386
accent
#E06D48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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