#AB2831#AB2831

#AB2831 is a mid, vivid red. Relative luminance 0.104; OKLCH L 49.1% C 0.167 H 22.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#AB2831
RGBrgb(171, 40, 49)
HSLhsl(356, 62%, 41%)
HSVhsv(356, 77%, 67%)
CMYKcmyk(0%, 76.6%, 71.3%, 32.9%)
CIE-LABlab(38.55, 52.58, 27.80)
CIE-LCHlch(38.55, 59.48, 27.86°)
OKLaboklab(49.07% 0.154 0.064)
OKLCHoklch(49.07% 0.167 22.6)
XYZxyz(18.1098, 10.4001, 3.9590)
Luminance0.1040 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2831 #28ABA2
analogous
#AB2873 #AB2831 #AB6128
triadic
#AB2831 #31AB28 #2831AB
tetradic
#AB2831 #73AB28 #28ABA2 #6128AB
square
#AB2831 #73AB28 #28ABA2 #6128AB
split-complementary
#AB2831 #28AB61 #2873AB
monochromatic
#481115 #791C23 #AB2831 #D23E48 #DE7077

Accessibility & contrast

On white

6.82
#AB2831 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#AB2831 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2831
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2831#FFFFFF#000000##FFFFFF
##AB28311.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4930
Deuteranopia (green-blind)
#70652D
Tritanopia (blue-blind)
#BC002D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #ab2831;
/* rgb */ color: rgb(171, 40, 49);
/* oklch */ color: oklch(49.1% 0.167 22.6);
Tailwind
colors: {
  custom: {
    50: '#cc6d69',
    500: '#ab2831',
    950: '#000000',
  },
}
SCSS
$custom: #ab2831;
$custom-light: #cc6d69;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2831",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 49
  },
  "hsl": {
    "h": 355.878,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49066,
    "c": 0.16673,
    "h": 22.6
  },
  "luminance": 0.10397
}

Semantic roles & 50–950 ramp

primary
#AB2831
secondary
#6AC4BE
accent
#E5DA43
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150806
muted
#837B7A

Preview Lab

Preview with #AB2831

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

Preview Lab → · Contrast checker → · Palette generator →

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