#AB4238#AB4238

#AB4238 is a mid, vivid red. Relative luminance 0.128; OKLCH L 52.1% C 0.140 H 28.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AB4238
RGBrgb(171, 66, 56)
HSLhsl(5, 51%, 45%)
HSVhsv(5, 67%, 67%)
CMYKcmyk(0%, 61.4%, 67.3%, 32.9%)
CIE-LABlab(42.52, 42.42, 28.37)
CIE-LCHlch(42.52, 51.03, 33.77°)
OKLaboklab(52.07% 0.1234 0.0664)
OKLCHoklch(52.07% 0.14 28.3)
XYZxyz(19.4585, 12.8425, 5.1948)
Luminance0.1284 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4238 #38A1AB
analogous
#AB3868 #AB4238 #AB7B38
triadic
#AB4238 #38AB42 #4238AB
tetradic
#AB4238 #68AB38 #38A1AB #7B38AB
square
#AB4238 #68AB38 #38A1AB #7B38AB
split-complementary
#AB4238 #38AB7B #3868AB
monochromatic
#4F1E1A #7D3029 #AB4238 #C86258 #D78D86

Accessibility & contrast

On white

5.89
#AB4238 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB4238 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4238
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4238#FFFFFF#000000##FFFFFF
##AB42381.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5636
Deuteranopia (green-blind)
#786D35
Tritanopia (blue-blind)
#BC2B40
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab4238;
/* rgb */ color: rgb(171, 66, 56);
/* oklch */ color: oklch(52.1% 0.140 28.3);
Tailwind
colors: {
  custom: {
    50: '#ca7b6f',
    500: '#ab4238',
    950: '#000000',
  },
}
SCSS
$custom: #ab4238;
$custom-light: #ca7b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4238",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 56
  },
  "hsl": {
    "h": 5.217,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52074,
    "c": 0.14008,
    "h": 28.3
  },
  "luminance": 0.1284
}

Semantic roles & 50–950 ramp

primary
#AB4238
secondary
#7DBBC1
accent
#CEDA4E
background
#FDF7F6
surface
#FAEEEC
border
#D3C9C7
text
#140A07
muted
#837C7A

Preview Lab

Preview with #AB4238

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

Preview Lab → · Contrast checker → · Palette generator →

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