#AB2F94#AB2F94

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

Color values

HEX#AB2F94
RGBrgb(171, 47, 148)
HSLhsl(311, 57%, 43%)
HSVhsv(311, 73%, 67%)
CMYKcmyk(0%, 72.5%, 13.5%, 32.9%)
CIE-LABlab(42.51, 60.10, -28.20)
CIE-LCHlch(42.51, 66.38, 334.86°)
OKLaboklab(52.98% 0.1765 -0.0768)
OKLCHoklch(52.98% 0.192 336.5)
XYZxyz(23.1568, 12.8312, 29.2683)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F94 #2FAB46
analogous
#842FAB #AB2F94 #AB2F56
triadic
#AB2F94 #94AB2F #2F94AB
tetradic
#AB2F94 #AB842F #2FAB46 #2F56AB
square
#AB2F94 #AB842F #2FAB46 #2F56AB
split-complementary
#AB2F94 #56AB2F #2FAB84
monochromatic
#4B1541 #7B226A #AB2F94 #CD4AB5 #DA7AC9

Accessibility & contrast

On white

5.89
#AB2F94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2F94
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F94#FFFFFF#000000##FFFFFF
##AB2F941.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2f94;
/* rgb */ color: rgb(171, 47, 148);
/* oklch */ color: oklch(53.0% 0.192 336.5);
Tailwind
colors: {
  custom: {
    50: '#c873b3',
    500: '#ab2f94',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f94;
$custom-light: #c873b3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f94",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 311.129,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52981,
    "c": 0.19248,
    "h": 336.5
  },
  "luminance": 0.12829
}

Semantic roles & 50–950 ramp

primary
#AB2F94
secondary
#73C382
accent
#E06448
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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