#AB402A#AB402A

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

Color values

HEX#AB402A
RGBrgb(171, 64, 42)
HSLhsl(10, 61%, 42%)
HSVhsv(10, 75%, 67%)
CMYKcmyk(0%, 62.6%, 75.4%, 32.9%)
CIE-LABlab(41.99, 42.63, 35.80)
CIE-LCHlch(41.99, 55.67, 40.02°)
OKLaboklab(51.61% 0.1212 0.0799)
OKLCHoklch(51.61% 0.145 33.4)
XYZxyz(19.0479, 12.4946, 3.5987)
Luminance0.1249 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB402A #2A95AB
analogous
#AB2A54 #AB402A #AB812A
triadic
#AB402A #2AAB40 #402AAB
tetradic
#AB402A #54AB2A #2A95AB #812AAB
square
#AB402A #54AB2A #2A95AB #812AAB
split-complementary
#AB402A #2AAB81 #2A54AB
monochromatic
#491B12 #7A2E1E #AB402A #D15A42 #DD8573

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB402A#FFFFFF#000000##FFFFFF
##AB402A1.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)
#5E5427
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#BC263B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab402a;
/* rgb */ color: rgb(171, 64, 42);
/* oklch */ color: oklch(51.6% 0.145 33.4);
Tailwind
colors: {
  custom: {
    50: '#cb7965',
    500: '#ab402a',
    950: '#000000',
  },
}
SCSS
$custom: #ab402a;
$custom-light: #cb7965;
$custom-dark: #000000;
JSON
{
  "hex": "#ab402a",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 42
  },
  "hsl": {
    "h": 10.233,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51614,
    "c": 0.14521,
    "h": 33.4
  },
  "luminance": 0.12492
}

Semantic roles & 50–950 ramp

primary
#AB402A
secondary
#6DB5C4
accent
#C8E444
background
#FDF7F6
surface
#FAEEEB
border
#D3C9C6
text
#150905
muted
#837B7A

Preview Lab

Preview with #AB402A

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

Preview Lab → · Contrast checker → · Palette generator →

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