#AB2F8E#AB2F8E

#AB2F8E is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.188 H 338.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AB2F8E
RGBrgb(171, 47, 142)
HSLhsl(314, 57%, 43%)
HSVhsv(314, 73%, 67%)
CMYKcmyk(0%, 72.5%, 17%, 32.9%)
CIE-LABlab(42.23, 59.22, -25.00)
CIE-LCHlch(42.23, 64.28, 337.11°)
OKLaboklab(52.68% 0.1758 -0.0677)
OKLCHoklch(52.68% 0.188 338.9)
XYZxyz(22.6941, 12.6461, 26.8317)
Luminance0.1264 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F8E #2FAB4C
analogous
#8A2FAB #AB2F8E #AB2F50
triadic
#AB2F8E #8EAB2F #2F8EAB
tetradic
#AB2F8E #AB8A2F #2FAB4C #2F50AB
square
#AB2F8E #AB8A2F #2FAB4C #2F50AB
split-complementary
#AB2F8E #50AB2F #2FAB8A
monochromatic
#4B153E #7B2266 #AB2F8E #CD4AAF #DA7AC4

Accessibility & contrast

On white

5.95
#AB2F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AB2F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F8E
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F8E#FFFFFF#000000##FFFFFF
##AB2F8E1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365791
Deuteranopia (green-blind)
#5E6B8B
Tritanopia (blue-blind)
#B5345B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2f8e;
/* rgb */ color: rgb(171, 47, 142);
/* oklch */ color: oklch(52.7% 0.188 338.9);
Tailwind
colors: {
  custom: {
    50: '#c873af',
    500: '#ab2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f8e;
$custom-light: #c873af;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f8e",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 314.032,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52684,
    "c": 0.18833,
    "h": 338.9
  },
  "luminance": 0.12644
}

Semantic roles & 50–950 ramp

primary
#AB2F8E
secondary
#73C386
accent
#E06B48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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