#AB2F7F#AB2F7F

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

Color values

HEX#AB2F7F
RGBrgb(171, 47, 127)
HSLhsl(321, 57%, 43%)
HSVhsv(321, 73%, 67%)
CMYKcmyk(0%, 72.5%, 25.7%, 32.9%)
CIE-LABlab(41.57, 57.17, -16.83)
CIE-LCHlch(41.57, 59.59, 343.60°)
OKLaboklab(52% 0.1731 -0.0447)
OKLCHoklch(52% 0.179 345.5)
XYZxyz(21.6428, 12.2256, 21.2945)
Luminance0.1222 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F7F #2FAB5B
analogous
#992FAB #AB2F7F #AB2F41
triadic
#AB2F7F #7FAB2F #2F7FAB
tetradic
#AB2F7F #AB992F #2FAB5B #2F41AB
square
#AB2F7F #AB992F #2FAB5B #2F41AB
split-complementary
#AB2F7F #41AB2F #2FAB99
monochromatic
#4B1538 #7B225B #AB2F7F #CD4A9F #DA7AB8

Accessibility & contrast

On white

6.10
#AB2F7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2F7F
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F7F#FFFFFF#000000##FFFFFF
##AB2F7F1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5581
Deuteranopia (green-blind)
#636A7C
Tritanopia (blue-blind)
#B72D53
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2f7f;
/* rgb */ color: rgb(171, 47, 127);
/* oklch */ color: oklch(52.0% 0.179 345.5);
Tailwind
colors: {
  custom: {
    50: '#c873a4',
    500: '#ab2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f7f;
$custom-light: #c873a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f7f",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 321.29,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51996,
    "c": 0.17878,
    "h": 345.5
  },
  "luminance": 0.12223
}

Semantic roles & 50–950 ramp

primary
#AB2F7F
secondary
#73C38F
accent
#E07E48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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