#AB312F#AB312F

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

Color values

HEX#AB312F
RGBrgb(171, 49, 47)
HSLhsl(1, 57%, 43%)
HSVhsv(1, 73%, 67%)
CMYKcmyk(0%, 71.3%, 72.5%, 32.9%)
CIE-LABlab(39.69, 49.26, 30.34)
CIE-LCHlch(39.69, 57.85, 31.63°)
OKLaboklab(49.9% 0.143 0.0692)
OKLCHoklch(49.9% 0.159 25.8)
XYZxyz(18.4080, 11.0625, 3.8548)
Luminance0.1106 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB312F #2FA9AB
analogous
#AB2F6B #AB312F #AB6F2F
triadic
#AB312F #2FAB31 #312FAB
tetradic
#AB312F #6BAB2F #2FA9AB #6F2FAB
square
#AB312F #6BAB2F #2FA9AB #6F2FAB
split-complementary
#AB312F #2FAB6F #2F6BAB
monochromatic
#4B1515 #7B2322 #AB312F #CD4C4A #DA7C7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB312F#FFFFFF#000000##FFFFFF
##AB312F1.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)
#544D2E
Deuteranopia (green-blind)
#72672B
Tritanopia (blue-blind)
#BC0332
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #ab312f;
/* rgb */ color: rgb(171, 49, 47);
/* oklch */ color: oklch(49.9% 0.159 25.8);
Tailwind
colors: {
  custom: {
    50: '#cc7168',
    500: '#ab312f',
    950: '#000000',
  },
}
SCSS
$custom: #ab312f;
$custom-light: #cc7168;
$custom-dark: #000000;
JSON
{
  "hex": "#ab312f",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 47
  },
  "hsl": {
    "h": 0.968,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49902,
    "c": 0.15885,
    "h": 25.8
  },
  "luminance": 0.1106
}

Semantic roles & 50–950 ramp

primary
#AB312F
secondary
#73C1C3
accent
#DEE048
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150806
muted
#837B7A

Preview Lab

Preview with #AB312F

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

Preview Lab → · Contrast checker → · Palette generator →

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