#AB402D#AB402D

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

Color values

HEX#AB402D
RGBrgb(171, 64, 45)
HSLhsl(9, 58%, 42%)
HSVhsv(9, 74%, 67%)
CMYKcmyk(0%, 62.6%, 73.7%, 32.9%)
CIE-LABlab(42.03, 42.77, 34.16)
CIE-LCHlch(42.03, 54.74, 38.61°)
OKLaboklab(51.65% 0.1222 0.0771)
OKLCHoklch(51.65% 0.145 32.2)
XYZxyz(19.1036, 12.5168, 3.8922)
Luminance0.1251 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB402D #2D98AB
analogous
#AB2D59 #AB402D #AB7F2D
triadic
#AB402D #2DAB40 #402DAB
tetradic
#AB402D #59AB2D #2D98AB #7F2DAB
square
#AB402D #59AB2D #2D98AB #7F2DAB
split-complementary
#AB402D #2DAB7F #2D59AB
monochromatic
#4A1C14 #7B2E20 #AB402D #CE5B47 #DB8677

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB402D#FFFFFF#000000##FFFFFF
##AB402D1.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)
#5D542A
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#BC263C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab402d;
/* rgb */ color: rgb(171, 64, 45);
/* oklch */ color: oklch(51.7% 0.145 32.2);
Tailwind
colors: {
  custom: {
    50: '#cb7967',
    500: '#ab402d',
    950: '#000000',
  },
}
SCSS
$custom: #ab402d;
$custom-light: #cb7967;
$custom-dark: #000000;
JSON
{
  "hex": "#ab402d",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 45
  },
  "hsl": {
    "h": 9.048,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51651,
    "c": 0.14451,
    "h": 32.2
  },
  "luminance": 0.12514
}

Semantic roles & 50–950 ramp

primary
#AB402D
secondary
#71B7C3
accent
#CAE246
background
#FDF7F6
surface
#FAEEEB
border
#D3C9C6
text
#150906
muted
#837B7A

Preview Lab

Preview with #AB402D

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

Preview Lab → · Contrast checker → · Palette generator →

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