#AB318B#AB318B

#AB318B is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.7% C 0.184 H 340.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AB318B
RGBrgb(171, 49, 139)
HSLhsl(316, 55%, 43%)
HSVhsv(316, 71%, 67%)
CMYKcmyk(0%, 71.3%, 18.7%, 32.9%)
CIE-LABlab(42.34, 58.09, -23.00)
CIE-LCHlch(42.34, 62.47, 338.40°)
OKLaboklab(52.72% 0.1732 -0.062)
OKLCHoklch(52.72% 0.184 340.3)
XYZxyz(22.5537, 12.7208, 25.6887)
Luminance0.1272 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB318B #31AB51
analogous
#8E31AB #AB318B #AB314E
triadic
#AB318B #8BAB31 #318BAB
tetradic
#AB318B #AB8E31 #31AB51 #314EAB
square
#AB318B #AB8E31 #31AB51 #314EAB
split-complementary
#AB318B #4EAB31 #31AB8E
monochromatic
#4C163E #7B2364 #AB318B #CC4DAB #DA7DC1

Accessibility & contrast

On white

5.93
#AB318B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB318B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB318B
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB318B#FFFFFF#000000##FFFFFF
##AB318B1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578E
Deuteranopia (green-blind)
#606B88
Tritanopia (blue-blind)
#B5345A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab318b;
/* rgb */ color: rgb(171, 49, 139);
/* oklch */ color: oklch(52.7% 0.184 340.3);
Tailwind
colors: {
  custom: {
    50: '#c874ad',
    500: '#ab318b',
    950: '#000000',
  },
}
SCSS
$custom: #ab318b;
$custom-light: #c874ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab318b",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 315.738,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52723,
    "c": 0.18393,
    "h": 340.3
  },
  "luminance": 0.12719
}

Semantic roles & 50–950 ramp

primary
#AB318B
secondary
#75C28A
accent
#DF7049
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB318B

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

Preview Lab → · Contrast checker → · Palette generator →

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