#AB2F7E#AB2F7E

#AB2F7E is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.0% C 0.178 H 346.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AB2F7E
RGBrgb(171, 47, 126)
HSLhsl(322, 57%, 43%)
HSVhsv(322, 73%, 67%)
CMYKcmyk(0%, 72.5%, 26.3%, 32.9%)
CIE-LABlab(41.53, 57.04, -16.27)
CIE-LCHlch(41.53, 59.31, 344.07°)
OKLaboklab(51.95% 0.1729 -0.0431)
OKLCHoklch(51.95% 0.178 346)
XYZxyz(21.5779, 12.1996, 20.9530)
Luminance0.1220 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F7E #2FAB5C
analogous
#9A2FAB #AB2F7E #AB2F40
triadic
#AB2F7E #7EAB2F #2F7EAB
tetradic
#AB2F7E #AB9A2F #2FAB5C #2F40AB
square
#AB2F7E #AB9A2F #2FAB5C #2F40AB
split-complementary
#AB2F7E #40AB2F #2FAB9A
monochromatic
#4B1537 #7B225B #AB2F7E #CD4A9E #DA7AB7

Accessibility & contrast

On white

6.11
#AB2F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2F7E
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F7E#FFFFFF#000000##FFFFFF
##AB2F7E1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5480
Deuteranopia (green-blind)
#646A7B
Tritanopia (blue-blind)
#B72C52
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2f7e;
/* rgb */ color: rgb(171, 47, 126);
/* oklch */ color: oklch(52.0% 0.178 346.0);
Tailwind
colors: {
  custom: {
    50: '#c873a3',
    500: '#ab2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f7e;
$custom-light: #c873a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f7e",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 321.774,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51953,
    "c": 0.1782,
    "h": 346
  },
  "luminance": 0.12197
}

Semantic roles & 50–950 ramp

primary
#AB2F7E
secondary
#73C390
accent
#E07F48
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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