#AB2E94#AB2E94

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

Color values

HEX#AB2E94
RGBrgb(171, 46, 148)
HSLhsl(311, 58%, 43%)
HSVhsv(311, 73%, 67%)
CMYKcmyk(0%, 73.1%, 13.5%, 32.9%)
CIE-LABlab(42.39, 60.44, -28.39)
CIE-LCHlch(42.39, 66.77, 334.84°)
OKLaboklab(52.89% 0.1775 -0.0773)
OKLCHoklch(52.89% 0.194 336.5)
XYZxyz(23.1173, 12.7521, 29.2551)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E94 #2EAB45
analogous
#842EAB #AB2E94 #AB2E55
triadic
#AB2E94 #94AB2E #2E94AB
tetradic
#AB2E94 #AB842E #2EAB45 #2E55AB
square
#AB2E94 #AB842E #2EAB45 #2E55AB
split-complementary
#AB2E94 #55AB2E #2EAB84
monochromatic
#4B1441 #7B216A #AB2E94 #CE48B5 #DB79C9

Accessibility & contrast

On white

5.92
#AB2E94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AB2E94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E94
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E94#FFFFFF#000000##FFFFFF
##AB2E941.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305897
Deuteranopia (green-blind)
#5B6B91
Tritanopia (blue-blind)
#B4365E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2e94;
/* rgb */ color: rgb(171, 46, 148);
/* oklch */ color: oklch(52.9% 0.194 336.5);
Tailwind
colors: {
  custom: {
    50: '#c873b3',
    500: '#ab2e94',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e94;
$custom-light: #c873b3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e94",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 148
  },
  "hsl": {
    "h": 311.04,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52894,
    "c": 0.19362,
    "h": 336.5
  },
  "luminance": 0.1275
}

Semantic roles & 50–950 ramp

primary
#AB2E94
secondary
#72C381
accent
#E16347
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2E94

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

Preview Lab → · Contrast checker → · Palette generator →

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