#AB4038#AB4038

#AB4038 is a mid, vivid red. Relative luminance 0.126; OKLCH L 51.8% C 0.142 H 27.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AB4038
RGBrgb(171, 64, 56)
HSLhsl(4, 51%, 45%)
HSVhsv(4, 67%, 67%)
CMYKcmyk(0%, 62.6%, 67.3%, 32.9%)
CIE-LABlab(42.17, 43.36, 27.94)
CIE-LCHlch(42.17, 51.58, 32.80°)
OKLaboklab(51.81% 0.1263 0.0654)
OKLCHoklch(51.81% 0.142 27.4)
XYZxyz(19.3437, 12.6129, 5.1565)
Luminance0.1261 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4038 #38A3AB
analogous
#AB386A #AB4038 #AB7A38
triadic
#AB4038 #38AB40 #4038AB
tetradic
#AB4038 #6AAB38 #38A3AB #7A38AB
square
#AB4038 #6AAB38 #38A3AB #7A38AB
split-complementary
#AB4038 #38AB7A #386AAB
monochromatic
#4F1D1A #7D2F29 #AB4038 #C86058 #D78C86

Accessibility & contrast

On white

5.96
#AB4038 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB4038 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4038
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4038#FFFFFF#000000##FFFFFF
##AB40381.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5537
Deuteranopia (green-blind)
#776C35
Tritanopia (blue-blind)
#BC283F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab4038;
/* rgb */ color: rgb(171, 64, 56);
/* oklch */ color: oklch(51.8% 0.142 27.4);
Tailwind
colors: {
  custom: {
    50: '#cb7a6f',
    500: '#ab4038',
    950: '#000000',
  },
}
SCSS
$custom: #ab4038;
$custom-light: #cb7a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4038",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 56
  },
  "hsl": {
    "h": 4.174,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5181,
    "c": 0.14222,
    "h": 27.4
  },
  "luminance": 0.1261
}

Semantic roles & 50–950 ramp

primary
#AB4038
secondary
#7DBDC1
accent
#D0DA4E
background
#FDF7F6
surface
#FAEEEC
border
#D3C9C7
text
#150907
muted
#837B7A

Preview Lab

Preview with #AB4038

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

Preview Lab → · Contrast checker → · Palette generator →

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