#AB2E8A#AB2E8A

#AB2E8A is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.4% C 0.187 H 340.6°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#AB2E8A
RGBrgb(171, 46, 138)
HSLhsl(316, 58%, 43%)
HSVhsv(316, 73%, 67%)
CMYKcmyk(0%, 73.1%, 19.3%, 32.9%)
CIE-LABlab(41.92, 59.00, -23.04)
CIE-LCHlch(41.92, 63.34, 338.67°)
OKLaboklab(52.4% 0.1762 -0.0621)
OKLCHoklch(52.4% 0.187 340.6)
XYZxyz(22.3597, 12.4491, 25.2652)
Luminance0.1245 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E8A #2EAB4F
analogous
#8E2EAB #AB2E8A #AB2E4B
triadic
#AB2E8A #8AAB2E #2E8AAB
tetradic
#AB2E8A #AB8E2E #2EAB4F #2E4BAB
square
#AB2E8A #AB8E2E #2EAB4F #2E4BAB
split-complementary
#AB2E8A #4BAB2E #2EAB8E
monochromatic
#4B143C #7B2163 #AB2E8A #CE48AB #DB79C1

Accessibility & contrast

On white

6.02
#AB2E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AB2E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E8A
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E8A#FFFFFF#000000##FFFFFF
##AB2E8A1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568D
Deuteranopia (green-blind)
#5F6A87
Tritanopia (blue-blind)
#B53158
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2e8a;
/* rgb */ color: rgb(171, 46, 138);
/* oklch */ color: oklch(52.4% 0.187 340.6);
Tailwind
colors: {
  custom: {
    50: '#c873ac',
    500: '#ab2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e8a;
$custom-light: #c873ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e8a",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 315.84,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52404,
    "c": 0.18683,
    "h": 340.6
  },
  "luminance": 0.12447
}

Semantic roles & 50–950 ramp

primary
#AB2E8A
secondary
#72C387
accent
#E17047
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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