#AB4227#AB4227

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

Color values

HEX#AB4227
RGBrgb(171, 66, 39)
HSLhsl(12, 63%, 41%)
HSVhsv(12, 77%, 67%)
CMYKcmyk(0%, 61.4%, 77.2%, 32.9%)
CIE-LABlab(42.31, 41.57, 37.78)
CIE-LCHlch(42.31, 56.17, 42.26°)
OKLaboklab(51.85% 0.1174 0.0835)
OKLCHoklch(51.85% 0.144 35.4)
XYZxyz(19.1110, 12.7035, 3.3647)
Luminance0.1270 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4227 #2790AB
analogous
#AB274E #AB4227 #AB8427
triadic
#AB4227 #27AB42 #4227AB
tetradic
#AB4227 #4EAB27 #2790AB #8427AB
square
#AB4227 #4EAB27 #2790AB #8427AB
split-complementary
#AB4227 #27AB84 #274EAB
monochromatic
#471C10 #792F1C #AB4227 #D35B3D #DE856E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB4227#FFFFFF#000000##FFFFFF
##AB42271.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)
#5F5523
Deuteranopia (green-blind)
#796D23
Tritanopia (blue-blind)
#BC293C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab4227;
/* rgb */ color: rgb(171, 66, 39);
/* oklch */ color: oklch(51.8% 0.144 35.4);
Tailwind
colors: {
  custom: {
    50: '#cc7a63',
    500: '#ab4227',
    950: '#000000',
  },
}
SCSS
$custom: #ab4227;
$custom-light: #cc7a63;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4227",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 39
  },
  "hsl": {
    "h": 12.273,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51846,
    "c": 0.144,
    "h": 35.4
  },
  "luminance": 0.12701
}

Semantic roles & 50–950 ramp

primary
#AB4227
secondary
#69B2C5
accent
#C4E642
background
#FDF7F5
surface
#FBEEEA
border
#D4C9C6
text
#150905
muted
#837B79

Preview Lab

Preview with #AB4227

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

Preview Lab → · Contrast checker → · Palette generator →

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