#AB315B#AB315B

#AB315B is a mid, vivid pink. Relative luminance 0.116; OKLCH L 50.9% C 0.161 H 4.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#AB315B
RGBrgb(171, 49, 91)
HSLhsl(339, 55%, 43%)
HSVhsv(339, 71%, 67%)
CMYKcmyk(0%, 71.3%, 46.8%, 32.9%)
CIE-LABlab(40.59, 52.38, 4.16)
CIE-LCHlch(40.59, 52.54, 4.54°)
OKLaboklab(50.87% 0.1602 0.0112)
OKLCHoklch(50.87% 0.161 4)
XYZxyz(19.7828, 11.6124, 11.0952)
Luminance0.1161 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB315B #31AB81
analogous
#AB3198 #AB315B #AB4431
triadic
#AB315B #5BAB31 #315BAB
tetradic
#AB315B #98AB31 #31AB81 #4431AB
square
#AB315B #98AB31 #31AB81 #4431AB
split-complementary
#AB315B #31AB44 #3198AB
monochromatic
#4C1628 #7B2342 #AB315B #CC4D79 #DA7D9D

Accessibility & contrast

On white

6.32
#AB315B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#AB315B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB315B
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB315B#FFFFFF#000000##FFFFFF
##AB315B1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C505C
Deuteranopia (green-blind)
#6D6858
Tritanopia (blue-blind)
#BA1D42
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab315b;
/* rgb */ color: rgb(171, 49, 91);
/* oklch */ color: oklch(50.9% 0.161 4.0);
Tailwind
colors: {
  custom: {
    50: '#c97389',
    500: '#ab315b',
    950: '#000000',
  },
}
SCSS
$custom: #ab315b;
$custom-light: #c97389;
$custom-dark: #000000;
JSON
{
  "hex": "#ab315b",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 339.344,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50872,
    "c": 0.16055,
    "h": 4
  },
  "luminance": 0.1161
}

Semantic roles & 50–950 ramp

primary
#AB315B
secondary
#75C2A8
accent
#DFAB49
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AB315B

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

Preview Lab → · Contrast checker → · Palette generator →

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