#AB2E95#AB2E95

#AB2E95 is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.9% C 0.194 H 336.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AB2E95
RGBrgb(171, 46, 149)
HSLhsl(311, 58%, 43%)
HSVhsv(311, 73%, 67%)
CMYKcmyk(0%, 73.1%, 12.9%, 32.9%)
CIE-LABlab(42.44, 60.59, -28.92)
CIE-LCHlch(42.44, 67.13, 334.49°)
OKLaboklab(52.95% 0.1776 -0.0788)
OKLCHoklch(52.95% 0.194 336.1)
XYZxyz(23.1968, 12.7839, 29.6738)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E95 #2EAB44
analogous
#832EAB #AB2E95 #AB2E56
triadic
#AB2E95 #95AB2E #2E95AB
tetradic
#AB2E95 #AB832E #2EAB44 #2E56AB
square
#AB2E95 #AB832E #2EAB44 #2E56AB
split-complementary
#AB2E95 #56AB2E #2EAB83
monochromatic
#4B1441 #7B216B #AB2E95 #CE48B6 #DB79CA

Accessibility & contrast

On white

5.90
#AB2E95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AB2E95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E95
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E95#FFFFFF#000000##FFFFFF
##AB2E951.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2e95;
/* rgb */ color: rgb(171, 46, 149);
/* oklch */ color: oklch(52.9% 0.194 336.1);
Tailwind
colors: {
  custom: {
    50: '#c873b4',
    500: '#ab2e95',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e95;
$custom-light: #c873b4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e95",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 310.56,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52945,
    "c": 0.19433,
    "h": 336.1
  },
  "luminance": 0.12782
}

Semantic roles & 50–950 ramp

primary
#AB2E95
secondary
#72C380
accent
#E16247
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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