#AB2A8F#AB2A8F

#AB2A8F is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.3% C 0.195 H 338.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AB2A8F
RGBrgb(171, 42, 143)
HSLhsl(313, 61%, 42%)
HSVhsv(313, 75%, 67%)
CMYKcmyk(0%, 75.4%, 16.4%, 32.9%)
CIE-LABlab(41.69, 61.02, -26.45)
CIE-LCHlch(41.69, 66.50, 336.57°)
OKLaboklab(52.31% 0.1809 -0.0717)
OKLCHoklch(52.31% 0.195 338.4)
XYZxyz(22.5810, 12.2992, 27.1660)
Luminance0.1230 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A8F #2AAB46
analogous
#872AAB #AB2A8F #AB2A4F
triadic
#AB2A8F #8FAB2A #2A8FAB
tetradic
#AB2A8F #AB872A #2AAB46 #2A4FAB
square
#AB2A8F #AB872A #2AAB46 #2A4FAB
split-complementary
#AB2A8F #4FAB2A #2AAB87
monochromatic
#49123D #7A1E66 #AB2A8F #D142B2 #DD73C6

Accessibility & contrast

On white

6.07
#AB2A8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB2A8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A8F
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A8F#FFFFFF#000000##FFFFFF
##AB2A8F1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305692
Deuteranopia (green-blind)
#5C698C
Tritanopia (blue-blind)
#B5315A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2a8f;
/* rgb */ color: rgb(171, 42, 143);
/* oklch */ color: oklch(52.3% 0.195 338.4);
Tailwind
colors: {
  custom: {
    50: '#c871b0',
    500: '#ab2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a8f;
$custom-light: #c871b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a8f",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 313.023,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52311,
    "c": 0.19458,
    "h": 338.4
  },
  "luminance": 0.12297
}

Semantic roles & 50–950 ramp

primary
#AB2A8F
secondary
#6DC480
accent
#E46744
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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