#AB315E#AB315E

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

Color values

HEX#AB315E
RGBrgb(171, 49, 94)
HSLhsl(338, 55%, 43%)
HSVhsv(338, 71%, 67%)
CMYKcmyk(0%, 71.3%, 45%, 32.9%)
CIE-LABlab(40.68, 52.67, 2.39)
CIE-LCHlch(40.68, 52.72, 2.60°)
OKLaboklab(50.96% 0.1613 0.0068)
OKLCHoklch(50.96% 0.161 2.4)
XYZxyz(19.9148, 11.6652, 11.7904)
Luminance0.1166 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB315E #31AB7E
analogous
#AB319B #AB315E #AB4131
triadic
#AB315E #5EAB31 #315EAB
tetradic
#AB315E #9BAB31 #31AB7E #4131AB
square
#AB315E #9BAB31 #31AB7E #4131AB
split-complementary
#AB315E #31AB41 #319BAB
monochromatic
#4C162A #7B2344 #AB315E #CC4D7C #DA7D9F

Accessibility & contrast

On white

6.30
#AB315E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB315E
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB315E#FFFFFF#000000##FFFFFF
##AB315E1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C515F
Deuteranopia (green-blind)
#6C695B
Tritanopia (blue-blind)
#BA1E44
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab315e;
/* rgb */ color: rgb(171, 49, 94);
/* oklch */ color: oklch(51.0% 0.161 2.4);
Tailwind
colors: {
  custom: {
    50: '#c9738b',
    500: '#ab315e',
    950: '#000000',
  },
}
SCSS
$custom: #ab315e;
$custom-light: #c9738b;
$custom-dark: #000000;
JSON
{
  "hex": "#ab315e",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 337.869,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50963,
    "c": 0.16139,
    "h": 2.4
  },
  "luminance": 0.11663
}

Semantic roles & 50–950 ramp

primary
#AB315E
secondary
#75C2A6
accent
#DFA849
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AB315E

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

Preview Lab → · Contrast checker → · Palette generator →

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