#AB2F8C#AB2F8C

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

Color values

HEX#AB2F8C
RGBrgb(171, 47, 140)
HSLhsl(315, 57%, 43%)
HSVhsv(315, 73%, 67%)
CMYKcmyk(0%, 72.5%, 18.1%, 32.9%)
CIE-LABlab(42.13, 58.93, -23.93)
CIE-LCHlch(42.13, 63.61, 337.90°)
OKLaboklab(52.59% 0.1755 -0.0646)
OKLCHoklch(52.59% 0.187 339.8)
XYZxyz(22.5453, 12.5866, 26.0480)
Luminance0.1258 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F8C #2FAB4E
analogous
#8C2FAB #AB2F8C #AB2F4E
triadic
#AB2F8C #8CAB2F #2F8CAB
tetradic
#AB2F8C #AB8C2F #2FAB4E #2F4EAB
square
#AB2F8C #AB8C2F #2FAB4E #2F4EAB
split-complementary
#AB2F8C #4EAB2F #2FAB8C
monochromatic
#4B153D #7B2265 #AB2F8C #CD4AAC #DA7AC2

Accessibility & contrast

On white

5.97
#AB2F8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2F8C
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F8C#FFFFFF#000000##FFFFFF
##AB2F8C1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37578F
Deuteranopia (green-blind)
#5F6B89
Tritanopia (blue-blind)
#B5335A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2f8c;
/* rgb */ color: rgb(171, 47, 140);
/* oklch */ color: oklch(52.6% 0.187 339.8);
Tailwind
colors: {
  custom: {
    50: '#c873ae',
    500: '#ab2f8c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f8c;
$custom-light: #c873ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f8c",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 140
  },
  "hsl": {
    "h": 315,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52588,
    "c": 0.18699,
    "h": 339.8
  },
  "luminance": 0.12584
}

Semantic roles & 50–950 ramp

primary
#AB2F8C
secondary
#73C387
accent
#E06E48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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