#AB402C#AB402C

#AB402C is a mid, vivid red. Relative luminance 0.125; OKLCH L 51.6% C 0.145 H 32.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AB402C
RGBrgb(171, 64, 44)
HSLhsl(9, 59%, 42%)
HSVhsv(9, 74%, 67%)
CMYKcmyk(0%, 62.6%, 74.3%, 32.9%)
CIE-LABlab(42.01, 42.73, 34.71)
CIE-LCHlch(42.01, 55.05, 39.09°)
OKLaboklab(51.64% 0.1219 0.0781)
OKLCHoklch(51.64% 0.145 32.6)
XYZxyz(19.0846, 12.5092, 3.7920)
Luminance0.1251 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB402C #2C97AB
analogous
#AB2C57 #AB402C #AB802C
triadic
#AB402C #2CAB40 #402CAB
tetradic
#AB402C #57AB2C #2C97AB #802CAB
square
#AB402C #57AB2C #2C97AB #802CAB
split-complementary
#AB402C #2CAB80 #2C57AB
monochromatic
#4A1C13 #7A2E1F #AB402C #CF5B45 #DC8676

Accessibility & contrast

On white

6.00
#AB402C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AB402C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB402C
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB402C#FFFFFF#000000##FFFFFF
##AB402C1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5429
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#BC263C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab402c;
/* rgb */ color: rgb(171, 64, 44);
/* oklch */ color: oklch(51.6% 0.145 32.6);
Tailwind
colors: {
  custom: {
    50: '#cb7966',
    500: '#ab402c',
    950: '#000000',
  },
}
SCSS
$custom: #ab402c;
$custom-light: #cb7966;
$custom-dark: #000000;
JSON
{
  "hex": "#ab402c",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 44
  },
  "hsl": {
    "h": 9.449,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51638,
    "c": 0.14475,
    "h": 32.6
  },
  "luminance": 0.12507
}

Semantic roles & 50–950 ramp

primary
#AB402C
secondary
#6FB6C3
accent
#CAE246
background
#FDF7F6
surface
#FAEEEB
border
#D3C9C6
text
#150906
muted
#837B7A

Preview Lab

Preview with #AB402C

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

Preview Lab → · Contrast checker → · Palette generator →

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