#AB313A#AB313A

#AB313A is a mid, vivid red. Relative luminance 0.112; OKLCH L 50.1% C 0.158 H 21.0°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#AB313A
RGBrgb(171, 49, 58)
HSLhsl(356, 55%, 43%)
HSVhsv(356, 71%, 67%)
CMYKcmyk(0%, 71.3%, 66.1%, 32.9%)
CIE-LABlab(39.85, 49.84, 23.86)
CIE-LCHlch(39.85, 55.26, 25.58°)
OKLaboklab(50.08% 0.1472 0.0566)
OKLCHoklch(50.08% 0.158 21)
XYZxyz(18.6586, 11.1628, 5.1743)
Luminance0.1116 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB313A #31ABA2
analogous
#AB3177 #AB313A #AB6531
triadic
#AB313A #3AAB31 #313AAB
tetradic
#AB313A #77AB31 #31ABA2 #6531AB
square
#AB313A #77AB31 #31ABA2 #6531AB
split-complementary
#AB313A #31AB65 #3177AB
monochromatic
#4C161A #7B232A #AB313A #CC4D57 #DA7D84

Accessibility & contrast

On white

6.50
#AB313A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#AB313A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB313A
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB313A#FFFFFF#000000##FFFFFF
##AB313A1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534D39
Deuteranopia (green-blind)
#716736
Tritanopia (blue-blind)
#BC0A35
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #ab313a;
/* rgb */ color: rgb(171, 49, 58);
/* oklch */ color: oklch(50.1% 0.158 21.0);
Tailwind
colors: {
  custom: {
    50: '#cb7270',
    500: '#ab313a',
    950: '#000000',
  },
}
SCSS
$custom: #ab313a;
$custom-light: #cb7270;
$custom-dark: #000000;
JSON
{
  "hex": "#ab313a",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 58
  },
  "hsl": {
    "h": 355.574,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50081,
    "c": 0.15769,
    "h": 21
  },
  "luminance": 0.1116
}

Semantic roles & 50–950 ramp

primary
#AB313A
secondary
#75C2BD
accent
#DFD449
background
#FDF7F6
surface
#FAEDEC
border
#D3C8C7
text
#150807
muted
#837B7A

Preview Lab

Preview with #AB313A

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

Preview Lab → · Contrast checker → · Palette generator →

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