#AB2A8E#AB2A8E

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

Color values

HEX#AB2A8E
RGBrgb(171, 42, 142)
HSLhsl(313, 61%, 42%)
HSVhsv(313, 75%, 67%)
CMYKcmyk(0%, 75.4%, 17%, 32.9%)
CIE-LABlab(41.64, 60.88, -25.91)
CIE-LCHlch(41.64, 66.16, 336.94°)
OKLaboklab(52.26% 0.1808 -0.0702)
OKLCHoklch(52.26% 0.194 338.8)
XYZxyz(22.5056, 12.2690, 26.7688)
Luminance0.1227 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A8E #2AAB47
analogous
#872AAB #AB2A8E #AB2A4E
triadic
#AB2A8E #8EAB2A #2A8EAB
tetradic
#AB2A8E #AB872A #2AAB47 #2A4EAB
square
#AB2A8E #AB872A #2AAB47 #2A4EAB
split-complementary
#AB2A8E #4EAB2A #2AAB87
monochromatic
#49123C #7A1E65 #AB2A8E #D142B0 #DD73C5

Accessibility & contrast

On white

6.08
#AB2A8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AB2A8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A8E
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A8E#FFFFFF#000000##FFFFFF
##AB2A8E1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315591
Deuteranopia (green-blind)
#5C698B
Tritanopia (blue-blind)
#B53059
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2a8e;
/* rgb */ color: rgb(171, 42, 142);
/* oklch */ color: oklch(52.3% 0.194 338.8);
Tailwind
colors: {
  custom: {
    50: '#c871af',
    500: '#ab2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a8e;
$custom-light: #c871af;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a8e",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 313.488,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52261,
    "c": 0.19392,
    "h": 338.8
  },
  "luminance": 0.12267
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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