#AB1F40#AB1F40

#AB1F40 is a mid, vivid red. Relative luminance 0.100; OKLCH L 48.6% C 0.174 H 14.2°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#AB1F40
RGBrgb(171, 31, 64)
HSLhsl(346, 69%, 40%)
HSVhsv(346, 82%, 67%)
CMYKcmyk(0%, 81.9%, 62.6%, 32.9%)
CIE-LABlab(37.86, 56.09, 17.51)
CIE-LCHlch(37.86, 58.76, 17.34°)
OKLaboklab(48.64% 0.1685 0.0427)
OKLCHoklch(48.64% 0.174 14.2)
XYZxyz(18.2119, 10.0108, 5.8228)
Luminance0.1001 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1F40 #1FAB8A
analogous
#AB1F86 #AB1F40 #AB441F
triadic
#AB1F40 #40AB1F #1F40AB
tetradic
#AB1F40 #86AB1F #1FAB8A #441FAB
square
#AB1F40 #86AB1F #1FAB8A #441FAB
split-complementary
#AB1F40 #1FAB44 #1F86AB
monochromatic
#430C19 #77162D #AB1F40 #D92E56 #E36280

Accessibility & contrast

On white

7.00
#AB1F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#AB1F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1F40
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1F40#FFFFFF#000000##FFFFFF
##AB1F401.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494740
Deuteranopia (green-blind)
#6C633C
Tritanopia (blue-blind)
#BC002E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #ab1f40;
/* rgb */ color: rgb(171, 31, 64);
/* oklch */ color: oklch(48.6% 0.174 14.2);
Tailwind
colors: {
  custom: {
    50: '#cb6a74',
    500: '#ab1f40',
    950: '#000000',
  },
}
SCSS
$custom: #ab1f40;
$custom-light: #cb6a74;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1f40",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 345.857,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4864,
    "c": 0.17378,
    "h": 14.2
  },
  "luminance": 0.10008
}

Semantic roles & 50–950 ramp

primary
#AB1F40
secondary
#5EC7AF
accent
#ECC33C
background
#FDF6F7
surface
#FAECED
border
#D3C7C8
text
#150708
muted
#837A7B

Preview Lab

Preview with #AB1F40

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

Preview Lab → · Contrast checker → · Palette generator →

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