#AB2F8A#AB2F8A

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

Color values

HEX#AB2F8A
RGBrgb(171, 47, 138)
HSLhsl(316, 57%, 43%)
HSVhsv(316, 73%, 67%)
CMYKcmyk(0%, 72.5%, 19.3%, 32.9%)
CIE-LABlab(42.04, 58.65, -22.85)
CIE-LCHlch(42.04, 62.95, 338.72°)
OKLaboklab(52.49% 0.1752 -0.0615)
OKLCHoklch(52.49% 0.186 340.6)
XYZxyz(22.3992, 12.5281, 25.2783)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F8A #2FAB50
analogous
#8E2FAB #AB2F8A #AB2F4C
triadic
#AB2F8A #8AAB2F #2F8AAB
tetradic
#AB2F8A #AB8E2F #2FAB50 #2F4CAB
square
#AB2F8A #AB8E2F #2FAB50 #2F4CAB
split-complementary
#AB2F8A #4CAB2F #2FAB8E
monochromatic
#4B153D #7B2263 #AB2F8A #CD4AAA #DA7AC1

Accessibility & contrast

On white

5.99
#AB2F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AB2F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F8A
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F8A#FFFFFF#000000##FFFFFF
##AB2F8A1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578D
Deuteranopia (green-blind)
#606A87
Tritanopia (blue-blind)
#B53259
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2f8a;
/* rgb */ color: rgb(171, 47, 138);
/* oklch */ color: oklch(52.5% 0.186 340.6);
Tailwind
colors: {
  custom: {
    50: '#c873ac',
    500: '#ab2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f8a;
$custom-light: #c873ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f8a",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 315.968,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52493,
    "c": 0.18566,
    "h": 340.6
  },
  "luminance": 0.12526
}

Semantic roles & 50–950 ramp

primary
#AB2F8A
secondary
#73C388
accent
#E07048
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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