#AB2F6A#AB2F6A

#AB2F6A is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.2% C 0.168 H 355.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AB2F6A
RGBrgb(171, 47, 106)
HSLhsl(331, 57%, 43%)
HSVhsv(331, 73%, 67%)
CMYKcmyk(0%, 72.5%, 38%, 32.9%)
CIE-LABlab(40.79, 54.65, -4.97)
CIE-LCHlch(40.79, 54.87, 354.80°)
OKLaboklab(51.17% 0.1676 -0.0124)
OKLCHoklch(51.17% 0.168 355.8)
XYZxyz(20.4139, 11.7340, 14.8228)
Luminance0.1173 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F6A #2FAB70
analogous
#AB2FA8 #AB2F6A #AB322F
triadic
#AB2F6A #6AAB2F #2F6AAB
tetradic
#AB2F6A #A8AB2F #2FAB70 #322FAB
square
#AB2F6A #A8AB2F #2FAB70 #322FAB
split-complementary
#AB2F6A #2FAB32 #2FA8AB
monochromatic
#4B152E #7B224C #AB2F6A #CD4A88 #DA7AA8

Accessibility & contrast

On white

6.28
#AB2F6A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AB2F6A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F6A
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F6A#FFFFFF#000000##FFFFFF
##AB2F6A1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47516C
Deuteranopia (green-blind)
#696967
Tritanopia (blue-blind)
#B92248
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2f6a;
/* rgb */ color: rgb(171, 47, 106);
/* oklch */ color: oklch(51.2% 0.168 355.8);
Tailwind
colors: {
  custom: {
    50: '#c97294',
    500: '#ab2f6a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f6a;
$custom-light: #c97294;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f6a",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 106
  },
  "hsl": {
    "h": 331.452,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51168,
    "c": 0.16806,
    "h": 355.8
  },
  "luminance": 0.11732
}

Semantic roles & 50–950 ramp

primary
#AB2F6A
secondary
#73C39D
accent
#E09848
background
#FCF7F9
surface
#F9EDF1
border
#D2C8CB
text
#14090D
muted
#827B7E

Preview Lab

Preview with #AB2F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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