#AB2891#AB2891

#AB2891 is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.3% C 0.198 H 337.5°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#AB2891
RGBrgb(171, 40, 145)
HSLhsl(312, 62%, 41%)
HSVhsv(312, 77%, 67%)
CMYKcmyk(0%, 76.6%, 15.2%, 32.9%)
CIE-LABlab(41.57, 61.92, -27.85)
CIE-LCHlch(41.57, 67.90, 335.78°)
OKLaboklab(52.26% 0.183 -0.0757)
OKLCHoklch(52.26% 0.198 337.5)
XYZxyz(22.6647, 12.2220, 27.9480)
Luminance0.1222 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2891 #28AB42
analogous
#8428AB #AB2891 #AB2850
triadic
#AB2891 #91AB28 #2891AB
tetradic
#AB2891 #AB8428 #28AB42 #2850AB
square
#AB2891 #AB8428 #28AB42 #2850AB
split-complementary
#AB2891 #50AB28 #28AB84
monochromatic
#48113D #791C67 #AB2891 #D23EB5 #DE70C8

Accessibility & contrast

On white

6.10
#AB2891 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AB2891 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2891
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2891#FFFFFF#000000##FFFFFF
##AB28911.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5594
Deuteranopia (green-blind)
#5A698E
Tritanopia (blue-blind)
#B4305A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2891;
/* rgb */ color: rgb(171, 40, 145);
/* oklch */ color: oklch(52.3% 0.198 337.5);
Tailwind
colors: {
  custom: {
    50: '#c870b1',
    500: '#ab2891',
    950: '#000000',
  },
}
SCSS
$custom: #ab2891;
$custom-light: #c870b1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2891",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 311.908,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52255,
    "c": 0.19801,
    "h": 337.5
  },
  "luminance": 0.1222
}

Semantic roles & 50–950 ramp

primary
#AB2891
secondary
#6AC47C
accent
#E56343
background
#FCF7FA
surface
#F9EDF5
border
#D2C8CF
text
#140811
muted
#827B80

Preview Lab

Preview with #AB2891

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

Preview Lab → · Contrast checker → · Palette generator →

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