#AB2F81#AB2F81

#AB2F81 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.1% C 0.180 H 344.6°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AB2F81
RGBrgb(171, 47, 129)
HSLhsl(320, 57%, 43%)
HSVhsv(320, 73%, 67%)
CMYKcmyk(0%, 72.5%, 24.6%, 32.9%)
CIE-LABlab(41.65, 57.43, -17.93)
CIE-LCHlch(41.65, 60.16, 342.66°)
OKLaboklab(52.08% 0.1735 -0.0477)
OKLCHoklch(52.08% 0.18 344.6)
XYZxyz(21.7744, 12.2782, 21.9878)
Luminance0.1228 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F81 #2FAB59
analogous
#972FAB #AB2F81 #AB2F43
triadic
#AB2F81 #81AB2F #2F81AB
tetradic
#AB2F81 #AB972F #2FAB59 #2F43AB
square
#AB2F81 #AB972F #2FAB59 #2F43AB
split-complementary
#AB2F81 #43AB2F #2FAB97
monochromatic
#4B1539 #7B225D #AB2F81 #CD4AA1 #DA7ABA

Accessibility & contrast

On white

6.08
#AB2F81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB2F81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F81
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F81#FFFFFF#000000##FFFFFF
##AB2F811.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5583
Deuteranopia (green-blind)
#636A7E
Tritanopia (blue-blind)
#B62E54
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2f81;
/* rgb */ color: rgb(171, 47, 129);
/* oklch */ color: oklch(52.1% 0.180 344.6);
Tailwind
colors: {
  custom: {
    50: '#c873a5',
    500: '#ab2f81',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f81;
$custom-light: #c873a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f81",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 320.323,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52084,
    "c": 0.17998,
    "h": 344.6
  },
  "luminance": 0.12276
}

Semantic roles & 50–950 ramp

primary
#AB2F81
secondary
#73C38E
accent
#E07B48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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