#AB312D#AB312D

#AB312D is a mid, vivid red. Relative luminance 0.110; OKLCH L 49.9% C 0.159 H 26.6°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#AB312D
RGBrgb(171, 49, 45)
HSLhsl(2, 58%, 42%)
HSVhsv(2, 74%, 67%)
CMYKcmyk(0%, 71.3%, 73.7%, 32.9%)
CIE-LABlab(39.66, 49.17, 31.49)
CIE-LCHlch(39.66, 58.39, 32.64°)
OKLaboklab(49.87% 0.1423 0.0713)
OKLCHoklch(49.87% 0.159 26.6)
XYZxyz(18.3686, 11.0468, 3.6471)
Luminance0.1104 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB312D #2DA7AB
analogous
#AB2D68 #AB312D #AB702D
triadic
#AB312D #2DAB31 #312DAB
tetradic
#AB312D #68AB2D #2DA7AB #702DAB
square
#AB312D #68AB2D #2DA7AB #702DAB
split-complementary
#AB312D #2DAB70 #2D68AB
monochromatic
#4A1514 #7B2320 #AB312D #CE4B47 #DB7A77

Accessibility & contrast

On white

6.54
#AB312D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#AB312D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB312D
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB312D#FFFFFF#000000##FFFFFF
##AB312D1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544D2B
Deuteranopia (green-blind)
#736729
Tritanopia (blue-blind)
#BC0231
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #ab312d;
/* rgb */ color: rgb(171, 49, 45);
/* oklch */ color: oklch(49.9% 0.159 26.6);
Tailwind
colors: {
  custom: {
    50: '#cc7166',
    500: '#ab312d',
    950: '#000000',
  },
}
SCSS
$custom: #ab312d;
$custom-light: #cc7166;
$custom-dark: #000000;
JSON
{
  "hex": "#ab312d",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 45
  },
  "hsl": {
    "h": 1.905,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49874,
    "c": 0.15913,
    "h": 26.6
  },
  "luminance": 0.11044
}

Semantic roles & 50–950 ramp

primary
#AB312D
secondary
#71C1C3
accent
#DDE246
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150806
muted
#837B7A

Preview Lab

Preview with #AB312D

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

Preview Lab → · Contrast checker → · Palette generator →

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