#AB315D#AB315D

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

Color values

HEX#AB315D
RGBrgb(171, 49, 93)
HSLhsl(338, 55%, 43%)
HSVhsv(338, 71%, 67%)
CMYKcmyk(0%, 71.3%, 45.6%, 32.9%)
CIE-LABlab(40.65, 52.57, 2.98)
CIE-LCHlch(40.65, 52.65, 3.25°)
OKLaboklab(50.93% 0.1609 0.0083)
OKLCHoklch(50.93% 0.161 2.9)
XYZxyz(19.8702, 11.6474, 11.5556)
Luminance0.1164 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB315D #31AB7F
analogous
#AB319A #AB315D #AB4231
triadic
#AB315D #5DAB31 #315DAB
tetradic
#AB315D #9AAB31 #31AB7F #4231AB
square
#AB315D #9AAB31 #31AB7F #4231AB
split-complementary
#AB315D #31AB42 #319AAB
monochromatic
#4C1629 #7B2343 #AB315D #CC4D7B #DA7D9E

Accessibility & contrast

On white

6.31
#AB315D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AB315D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB315D
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB315D#FFFFFF#000000##FFFFFF
##AB315D1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C515E
Deuteranopia (green-blind)
#6C695A
Tritanopia (blue-blind)
#BA1E43
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab315d;
/* rgb */ color: rgb(171, 49, 93);
/* oklch */ color: oklch(50.9% 0.161 2.9);
Tailwind
colors: {
  custom: {
    50: '#c9738a',
    500: '#ab315d',
    950: '#000000',
  },
}
SCSS
$custom: #ab315d;
$custom-light: #c9738a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab315d",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 93
  },
  "hsl": {
    "h": 338.361,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50932,
    "c": 0.1611,
    "h": 2.9
  },
  "luminance": 0.11645
}

Semantic roles & 50–950 ramp

primary
#AB315D
secondary
#75C2A7
accent
#DFA949
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AB315D

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

Preview Lab → · Contrast checker → · Palette generator →

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