#AB231F#AB231F

#AB231F is a mid, vivid red. Relative luminance 0.100; OKLCH L 48.4% C 0.173 H 27.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#AB231F
RGBrgb(171, 35, 31)
HSLhsl(2, 69%, 40%)
HSVhsv(2, 82%, 67%)
CMYKcmyk(0%, 79.5%, 81.9%, 32.9%)
CIE-LABlab(37.77, 53.45, 37.51)
CIE-LCHlch(37.77, 65.30, 35.06°)
OKLaboklab(48.42% 0.1528 0.0804)
OKLCHoklch(48.42% 0.173 27.7)
XYZxyz(17.6451, 9.9618, 2.2898)
Luminance0.0996 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB231F #1FA7AB
analogous
#AB1F61 #AB231F #AB691F
triadic
#AB231F #1FAB23 #231FAB
tetradic
#AB231F #61AB1F #1FA7AB #691FAB
square
#AB231F #61AB1F #1FA7AB #691FAB
split-complementary
#AB231F #1FAB69 #1F61AB
monochromatic
#430E0C #771816 #AB231F #D9332E #E36662

Accessibility & contrast

On white

7.02
#AB231F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#AB231F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #AB231F
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB231F#FFFFFF#000000##FFFFFF
##AB231F1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E461D
Deuteranopia (green-blind)
#706318
Tritanopia (blue-blind)
#BD0024
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #ab231f;
/* rgb */ color: rgb(171, 35, 31);
/* oklch */ color: oklch(48.4% 0.173 27.7);
Tailwind
colors: {
  custom: {
    50: '#ce6b5c',
    500: '#ab231f',
    950: '#000000',
  },
}
SCSS
$custom: #ab231f;
$custom-light: #ce6b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab231f",
  "rgb": {
    "r": 171,
    "g": 35,
    "b": 31
  },
  "hsl": {
    "h": 1.714,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48419,
    "c": 0.17264,
    "h": 27.7
  },
  "luminance": 0.09959
}

Semantic roles & 50–950 ramp

primary
#AB231F
secondary
#5EC4C7
accent
#E7EC3C
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#160704
muted
#847A79

Preview Lab

Preview with #AB231F

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

Preview Lab → · Contrast checker → · Palette generator →

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