#AB315A#AB315A

#AB315A is a mid, vivid pink. Relative luminance 0.116; OKLCH L 50.8% C 0.160 H 4.5°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AB315A
RGBrgb(171, 49, 90)
HSLhsl(340, 55%, 43%)
HSVhsv(340, 71%, 67%)
CMYKcmyk(0%, 71.3%, 47.4%, 32.9%)
CIE-LABlab(40.57, 52.28, 4.75)
CIE-LCHlch(40.57, 52.50, 5.19°)
OKLaboklab(50.84% 0.1598 0.0127)
OKLCHoklch(50.84% 0.16 4.5)
XYZxyz(19.7399, 11.5953, 10.8695)
Luminance0.1159 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB315A #31AB82
analogous
#AB3197 #AB315A #AB4531
triadic
#AB315A #5AAB31 #315AAB
tetradic
#AB315A #97AB31 #31AB82 #4531AB
square
#AB315A #97AB31 #31AB82 #4531AB
split-complementary
#AB315A #31AB45 #3197AB
monochromatic
#4C1628 #7B2341 #AB315A #CC4D78 #DA7D9C

Accessibility & contrast

On white

6.33
#AB315A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB315A
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB315A#FFFFFF#000000##FFFFFF
##AB315A1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D505B
Deuteranopia (green-blind)
#6D6857
Tritanopia (blue-blind)
#BA1C42
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab315a;
/* rgb */ color: rgb(171, 49, 90);
/* oklch */ color: oklch(50.8% 0.160 4.5);
Tailwind
colors: {
  custom: {
    50: '#c97288',
    500: '#ab315a',
    950: '#000000',
  },
}
SCSS
$custom: #ab315a;
$custom-light: #c97288;
$custom-dark: #000000;
JSON
{
  "hex": "#ab315a",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 90
  },
  "hsl": {
    "h": 339.836,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50842,
    "c": 0.16029,
    "h": 4.5
  },
  "luminance": 0.11593
}

Semantic roles & 50–950 ramp

primary
#AB315A
secondary
#75C2A9
accent
#DFAC49
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AB315A

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

Preview Lab → · Contrast checker → · Palette generator →

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