#AB2F91#AB2F91

#AB2F91 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.8% C 0.190 H 337.7°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AB2F91
RGBrgb(171, 47, 145)
HSLhsl(313, 57%, 43%)
HSVhsv(313, 73%, 67%)
CMYKcmyk(0%, 72.5%, 15.2%, 32.9%)
CIE-LABlab(42.36, 59.65, -26.61)
CIE-LCHlch(42.36, 65.32, 335.96°)
OKLaboklab(52.83% 0.1762 -0.0722)
OKLCHoklch(52.83% 0.19 337.7)
XYZxyz(22.9224, 12.7374, 28.0339)
Luminance0.1273 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F91 #2FAB49
analogous
#872FAB #AB2F91 #AB2F53
triadic
#AB2F91 #91AB2F #2F91AB
tetradic
#AB2F91 #AB872F #2FAB49 #2F53AB
square
#AB2F91 #AB872F #2FAB49 #2F53AB
split-complementary
#AB2F91 #53AB2F #2FAB87
monochromatic
#4B1540 #7B2268 #AB2F91 #CD4AB2 #DA7AC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB2F91#FFFFFF#000000##FFFFFF
##AB2F911.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)
#345894
Deuteranopia (green-blind)
#5D6B8E
Tritanopia (blue-blind)
#B4365C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2f91;
/* rgb */ color: rgb(171, 47, 145);
/* oklch */ color: oklch(52.8% 0.190 337.7);
Tailwind
colors: {
  custom: {
    50: '#c873b1',
    500: '#ab2f91',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f91;
$custom-light: #c873b1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f91",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 312.581,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52831,
    "c": 0.19038,
    "h": 337.7
  },
  "luminance": 0.12735
}

Semantic roles & 50–950 ramp

primary
#AB2F91
secondary
#73C384
accent
#E06848
background
#FCF7FA
surface
#F9EDF5
border
#D2C8CF
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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