#AB2E8B#AB2E8B

#AB2E8B is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.5% C 0.187 H 340.2°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AB2E8B
RGBrgb(171, 46, 139)
HSLhsl(315, 58%, 43%)
HSVhsv(315, 73%, 67%)
CMYKcmyk(0%, 73.1%, 18.7%, 32.9%)
CIE-LABlab(41.97, 59.14, -23.58)
CIE-LCHlch(41.97, 63.66, 338.27°)
OKLaboklab(52.45% 0.1764 -0.0636)
OKLCHoklch(52.45% 0.187 340.2)
XYZxyz(22.4324, 12.4782, 25.6482)
Luminance0.1248 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E8B #2EAB4E
analogous
#8D2EAB #AB2E8B #AB2E4C
triadic
#AB2E8B #8BAB2E #2E8BAB
tetradic
#AB2E8B #AB8D2E #2EAB4E #2E4CAB
square
#AB2E8B #AB8D2E #2EAB4E #2E4CAB
split-complementary
#AB2E8B #4CAB2E #2EAB8D
monochromatic
#4B143D #7B2164 #AB2E8B #CE48AC #DB79C2

Accessibility & contrast

On white

6.01
#AB2E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AB2E8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E8B
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E8B#FFFFFF#000000##FFFFFF
##AB2E8B1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568E
Deuteranopia (green-blind)
#5F6A88
Tritanopia (blue-blind)
#B53259
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2e8b;
/* rgb */ color: rgb(171, 46, 139);
/* oklch */ color: oklch(52.5% 0.187 340.2);
Tailwind
colors: {
  custom: {
    50: '#c873ad',
    500: '#ab2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e8b;
$custom-light: #c873ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e8b",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 315.36,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52452,
    "c": 0.18748,
    "h": 340.2
  },
  "luminance": 0.12476
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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