#AB2F8F#AB2F8F

#AB2F8F is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.7% C 0.189 H 338.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AB2F8F
RGBrgb(171, 47, 143)
HSLhsl(314, 57%, 43%)
HSVhsv(314, 73%, 67%)
CMYKcmyk(0%, 72.5%, 16.4%, 32.9%)
CIE-LABlab(42.27, 59.36, -25.54)
CIE-LCHlch(42.27, 64.62, 336.72°)
OKLaboklab(52.73% 0.1759 -0.0692)
OKLCHoklch(52.73% 0.189 338.5)
XYZxyz(22.7695, 12.6763, 27.2289)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F8F #2FAB4B
analogous
#892FAB #AB2F8F #AB2F51
triadic
#AB2F8F #8FAB2F #2F8FAB
tetradic
#AB2F8F #AB892F #2FAB4B #2F51AB
square
#AB2F8F #AB892F #2FAB4B #2F51AB
split-complementary
#AB2F8F #51AB2F #2FAB89
monochromatic
#4B153F #7B2267 #AB2F8F #CD4AB0 #DA7AC5

Accessibility & contrast

On white

5.94
#AB2F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AB2F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F8F
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F8F#FFFFFF#000000##FFFFFF
##AB2F8F1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355792
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#B5355B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2f8f;
/* rgb */ color: rgb(171, 47, 143);
/* oklch */ color: oklch(52.7% 0.189 338.5);
Tailwind
colors: {
  custom: {
    50: '#c873b0',
    500: '#ab2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f8f;
$custom-light: #c873b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f8f",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 313.548,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52733,
    "c": 0.18902,
    "h": 338.5
  },
  "luminance": 0.12674
}

Semantic roles & 50–950 ramp

primary
#AB2F8F
secondary
#73C385
accent
#E06A48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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