#AB2F8B#AB2F8B

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

Color values

HEX#AB2F8B
RGBrgb(171, 47, 139)
HSLhsl(315, 57%, 43%)
HSVhsv(315, 73%, 67%)
CMYKcmyk(0%, 72.5%, 18.7%, 32.9%)
CIE-LABlab(42.09, 58.79, -23.39)
CIE-LCHlch(42.09, 63.27, 338.31°)
OKLaboklab(52.54% 0.1753 -0.0631)
OKLCHoklch(52.54% 0.186 340.2)
XYZxyz(22.4719, 12.5572, 25.6614)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F8B #2FAB4F
analogous
#8D2FAB #AB2F8B #AB2F4D
triadic
#AB2F8B #8BAB2F #2F8BAB
tetradic
#AB2F8B #AB8D2F #2FAB4F #2F4DAB
square
#AB2F8B #AB8D2F #2FAB4F #2F4DAB
split-complementary
#AB2F8B #4DAB2F #2FAB8D
monochromatic
#4B153D #7B2264 #AB2F8B #CD4AAB #DA7AC2

Accessibility & contrast

On white

5.98
#AB2F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AB2F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F8B
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F8B#FFFFFF#000000##FFFFFF
##AB2F8B1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2f8b;
/* rgb */ color: rgb(171, 47, 139);
/* oklch */ color: oklch(52.5% 0.186 340.2);
Tailwind
colors: {
  custom: {
    50: '#c873ad',
    500: '#ab2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f8b;
$custom-light: #c873ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f8b",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 315.484,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5254,
    "c": 0.18632,
    "h": 340.2
  },
  "luminance": 0.12555
}

Semantic roles & 50–950 ramp

primary
#AB2F8B
secondary
#73C388
accent
#E06F48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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