#AB402F#AB402F

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

Color values

HEX#AB402F
RGBrgb(171, 64, 47)
HSLhsl(8, 57%, 43%)
HSVhsv(8, 73%, 67%)
CMYKcmyk(0%, 62.6%, 72.5%, 32.9%)
CIE-LABlab(42.05, 42.87, 33.05)
CIE-LCHlch(42.05, 54.13, 37.63°)
OKLaboklab(51.68% 0.123 0.0751)
OKLCHoklch(51.68% 0.144 31.4)
XYZxyz(19.1431, 12.5326, 4.0998)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB402F #2F9AAB
analogous
#AB2F5C #AB402F #AB7E2F
triadic
#AB402F #2FAB40 #402FAB
tetradic
#AB402F #5CAB2F #2F9AAB #7E2FAB
square
#AB402F #5CAB2F #2F9AAB #7E2FAB
split-complementary
#AB402F #2FAB7E #2F5CAB
monochromatic
#4B1C15 #7B2E22 #AB402F #CD5C4A #DA877A

Accessibility & contrast

On white

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

On black

3.51
#AB402F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AB402F#FFFFFF#000000##FFFFFF
##AB402F1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D552D
Deuteranopia (green-blind)
#786C2C
Tritanopia (blue-blind)
#BC273D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab402f;
/* rgb */ color: rgb(171, 64, 47);
/* oklch */ color: oklch(51.7% 0.144 31.4);
Tailwind
colors: {
  custom: {
    50: '#cb7968',
    500: '#ab402f',
    950: '#000000',
  },
}
SCSS
$custom: #ab402f;
$custom-light: #cb7968;
$custom-dark: #000000;
JSON
{
  "hex": "#ab402f",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 47
  },
  "hsl": {
    "h": 8.226,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51677,
    "c": 0.14407,
    "h": 31.4
  },
  "luminance": 0.1253
}

Semantic roles & 50–950 ramp

primary
#AB402F
secondary
#73B8C3
accent
#CBE048
background
#FDF7F6
surface
#FAEEEB
border
#D3C9C6
text
#150906
muted
#837B7A

Preview Lab

Preview with #AB402F

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

Preview Lab → · Contrast checker → · Palette generator →

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