#AB402E#AB402E

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

Color values

HEX#AB402E
RGBrgb(171, 64, 46)
HSLhsl(9, 58%, 43%)
HSVhsv(9, 73%, 67%)
CMYKcmyk(0%, 62.6%, 73.1%, 32.9%)
CIE-LABlab(42.04, 42.82, 33.61)
CIE-LCHlch(42.04, 54.43, 38.13°)
OKLaboklab(51.66% 0.1226 0.0761)
OKLCHoklch(51.66% 0.144 31.8)
XYZxyz(19.1231, 12.5246, 3.9948)
Luminance0.1252 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB402E #2E99AB
analogous
#AB2E5A #AB402E #AB7F2E
triadic
#AB402E #2EAB40 #402EAB
tetradic
#AB402E #5AAB2E #2E99AB #7F2EAB
square
#AB402E #5AAB2E #2E99AB #7F2EAB
split-complementary
#AB402E #2EAB7F #2E5AAB
monochromatic
#4B1C14 #7B2E21 #AB402E #CE5C48 #DB8779

Accessibility & contrast

On white

5.99
#AB402E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB402E
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB402E#FFFFFF#000000##FFFFFF
##AB402E1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab402e;
/* rgb */ color: rgb(171, 64, 46);
/* oklch */ color: oklch(51.7% 0.144 31.8);
Tailwind
colors: {
  custom: {
    50: '#cb7967',
    500: '#ab402e',
    950: '#000000',
  },
}
SCSS
$custom: #ab402e;
$custom-light: #cb7967;
$custom-dark: #000000;
JSON
{
  "hex": "#ab402e",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 46
  },
  "hsl": {
    "h": 8.64,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51664,
    "c": 0.14428,
    "h": 31.8
  },
  "luminance": 0.12522
}

Semantic roles & 50–950 ramp

primary
#AB402E
secondary
#72B7C3
accent
#CBE147
background
#FDF7F6
surface
#FAEEEB
border
#D3C9C6
text
#150906
muted
#837B7A

Preview Lab

Preview with #AB402E

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

Preview Lab → · Contrast checker → · Palette generator →

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