#AB2F7C#AB2F7C

#AB2F7C is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.9% C 0.177 H 346.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AB2F7C
RGBrgb(171, 47, 124)
HSLhsl(323, 57%, 43%)
HSVhsv(323, 73%, 67%)
CMYKcmyk(0%, 72.5%, 27.5%, 32.9%)
CIE-LABlab(41.45, 56.78, -15.16)
CIE-LCHlch(41.45, 58.77, 345.05°)
OKLaboklab(51.87% 0.1725 -0.0401)
OKLCHoklch(51.87% 0.177 346.9)
XYZxyz(21.4502, 12.1485, 20.2801)
Luminance0.1215 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F7C #2FAB5E
analogous
#9C2FAB #AB2F7C #AB2F3E
triadic
#AB2F7C #7CAB2F #2F7CAB
tetradic
#AB2F7C #AB9C2F #2FAB5E #2F3EAB
square
#AB2F7C #AB9C2F #2FAB5E #2F3EAB
split-complementary
#AB2F7C #3EAB2F #2FAB9C
monochromatic
#4B1536 #7B2259 #AB2F7C #CD4A9B #DA7AB6

Accessibility & contrast

On white

6.12
#AB2F7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AB2F7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F7C
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F7C#FFFFFF#000000##FFFFFF
##AB2F7C1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40547E
Deuteranopia (green-blind)
#646A79
Tritanopia (blue-blind)
#B72B51
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2f7c;
/* rgb */ color: rgb(171, 47, 124);
/* oklch */ color: oklch(51.9% 0.177 346.9);
Tailwind
colors: {
  custom: {
    50: '#c873a2',
    500: '#ab2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f7c;
$custom-light: #c873a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f7c",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 322.742,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51868,
    "c": 0.17704,
    "h": 346.9
  },
  "luminance": 0.12146
}

Semantic roles & 50–950 ramp

primary
#AB2F7C
secondary
#73C391
accent
#E08148
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AB2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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