#AB315F#AB315F

#AB315F is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.0% C 0.162 H 1.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#AB315F
RGBrgb(171, 49, 95)
HSLhsl(337, 55%, 43%)
HSVhsv(337, 71%, 67%)
CMYKcmyk(0%, 71.3%, 44.4%, 32.9%)
CIE-LABlab(40.71, 52.76, 1.81)
CIE-LCHlch(40.71, 52.80, 1.96°)
OKLaboklab(50.99% 0.1616 0.0053)
OKLCHoklch(50.99% 0.162 1.9)
XYZxyz(19.9600, 11.6833, 12.0283)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB315F #31AB7D
analogous
#AB319C #AB315F #AB4031
triadic
#AB315F #5FAB31 #315FAB
tetradic
#AB315F #9CAB31 #31AB7D #4031AB
square
#AB315F #9CAB31 #31AB7D #4031AB
split-complementary
#AB315F #31AB40 #319CAB
monochromatic
#4C162A #7B2345 #AB315F #CC4D7D #DA7DA0

Accessibility & contrast

On white

6.29
#AB315F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AB315F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB315F
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB315F#FFFFFF#000000##FFFFFF
##AB315F1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5160
Deuteranopia (green-blind)
#6C695C
Tritanopia (blue-blind)
#BA1F44
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab315f;
/* rgb */ color: rgb(171, 49, 95);
/* oklch */ color: oklch(51.0% 0.162 1.9);
Tailwind
colors: {
  custom: {
    50: '#c9738c',
    500: '#ab315f',
    950: '#000000',
  },
}
SCSS
$custom: #ab315f;
$custom-light: #c9738c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab315f",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 337.377,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50994,
    "c": 0.16169,
    "h": 1.9
  },
  "luminance": 0.11681
}

Semantic roles & 50–950 ramp

primary
#AB315F
secondary
#75C2A5
accent
#DFA649
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AB315F

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

Preview Lab → · Contrast checker → · Palette generator →

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