#AB4040#AB4040

#AB4040 is a mid, vivid red. Relative luminance 0.127; OKLCH L 51.9% C 0.141 H 23.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AB4040
RGBrgb(171, 64, 64)
HSLhsl(0, 46%, 46%)
HSVhsv(0, 63%, 67%)
CMYKcmyk(0%, 62.6%, 62.6%, 32.9%)
CIE-LABlab(42.30, 43.86, 23.29)
CIE-LCHlch(42.30, 49.66, 27.97°)
OKLaboklab(51.95% 0.1294 0.0559)
OKLCHoklch(51.95% 0.141 23.4)
XYZxyz(19.5552, 12.6975, 6.2706)
Luminance0.1270 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4040 #40ABAB
analogous
#AB4075 #AB4040 #AB7540
triadic
#AB4040 #40AB40 #4040AB
tetradic
#AB4040 #75AB40 #40ABAB #7540AB
square
#AB4040 #75AB40 #40ABAB #7540AB
split-complementary
#AB4040 #40AB75 #4075AB
monochromatic
#521F1F #7E2F2F #AB4040 #C56363 #D59090

Accessibility & contrast

On white

5.93
#AB4040 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB4040 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4040
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4040#FFFFFF#000000##FFFFFF
##AB40401.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B563F
Deuteranopia (green-blind)
#766C3D
Tritanopia (blue-blind)
#BB2A41
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab4040;
/* rgb */ color: rgb(171, 64, 64);
/* oklch */ color: oklch(51.9% 0.141 23.4);
Tailwind
colors: {
  custom: {
    50: '#ca7a74',
    500: '#ab4040',
    950: '#000000',
  },
}
SCSS
$custom: #ab4040;
$custom-light: #ca7a74;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4040",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 64
  },
  "hsl": {
    "h": 0,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51949,
    "c": 0.14099,
    "h": 23.4
  },
  "luminance": 0.12695
}

Semantic roles & 50–950 ramp

primary
#AB4040
secondary
#86C1C1
accent
#D5D553
background
#FDF7F7
surface
#FAEEED
border
#D3C9C8
text
#140908
muted
#837B7B

Preview Lab

Preview with #AB4040

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

Preview Lab → · Contrast checker → · Palette generator →

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