#AB2F95#AB2F95

#AB2F95 is a mid, vivid pink. Relative luminance 0.129; OKLCH L 53.0% C 0.193 H 336.1°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AB2F95
RGBrgb(171, 47, 149)
HSLhsl(311, 57%, 43%)
HSVhsv(311, 73%, 67%)
CMYKcmyk(0%, 72.5%, 12.9%, 32.9%)
CIE-LABlab(42.56, 60.24, -28.73)
CIE-LCHlch(42.56, 66.74, 334.50°)
OKLaboklab(53.03% 0.1766 -0.0783)
OKLCHoklch(53.03% 0.193 336.1)
XYZxyz(23.2363, 12.8630, 29.6870)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F95 #2FAB45
analogous
#832FAB #AB2F95 #AB2F57
triadic
#AB2F95 #95AB2F #2F95AB
tetradic
#AB2F95 #AB832F #2FAB45 #2F57AB
square
#AB2F95 #AB832F #2FAB45 #2F57AB
split-complementary
#AB2F95 #57AB2F #2FAB83
monochromatic
#4B1541 #7B226B #AB2F95 #CD4AB6 #DA7AC9

Accessibility & contrast

On white

5.88
#AB2F95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB2F95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F95
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F95#FFFFFF#000000##FFFFFF
##AB2F951.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315998
Deuteranopia (green-blind)
#5B6B92
Tritanopia (blue-blind)
#B4385E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2f95;
/* rgb */ color: rgb(171, 47, 149);
/* oklch */ color: oklch(53.0% 0.193 336.1);
Tailwind
colors: {
  custom: {
    50: '#c873b4',
    500: '#ab2f95',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f95;
$custom-light: #c873b4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f95",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 310.645,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53031,
    "c": 0.19318,
    "h": 336.1
  },
  "luminance": 0.12861
}

Semantic roles & 50–950 ramp

primary
#AB2F95
secondary
#73C381
accent
#E06348
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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