#AB2838#AB2838

#AB2838 is a mid, vivid red. Relative luminance 0.105; OKLCH L 49.2% C 0.166 H 19.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#AB2838
RGBrgb(171, 40, 56)
HSLhsl(353, 62%, 41%)
HSVhsv(353, 77%, 67%)
CMYKcmyk(0%, 76.6%, 67.3%, 32.9%)
CIE-LABlab(38.66, 52.94, 23.60)
CIE-LCHlch(38.66, 57.97, 24.03°)
OKLaboklab(49.19% 0.1567 0.0557)
OKLCHoklch(49.19% 0.166 19.6)
XYZxyz(18.2692, 10.4638, 4.7984)
Luminance0.1046 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2838 #28AB9B
analogous
#AB287A #AB2838 #AB5A28
triadic
#AB2838 #38AB28 #2838AB
tetradic
#AB2838 #7AAB28 #28AB9B #5A28AB
square
#AB2838 #7AAB28 #28AB9B #5A28AB
split-complementary
#AB2838 #28AB5A #287AAB
monochromatic
#481118 #791C28 #AB2838 #D23E50 #DE707D

Accessibility & contrast

On white

6.79
#AB2838 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#AB2838 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2838
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2838#FFFFFF#000000##FFFFFF
##AB28381.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4938
Deuteranopia (green-blind)
#6F6534
Tritanopia (blue-blind)
#BC002F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #ab2838;
/* rgb */ color: rgb(171, 40, 56);
/* oklch */ color: oklch(49.2% 0.166 19.6);
Tailwind
colors: {
  custom: {
    50: '#cc6e6e',
    500: '#ab2838',
    950: '#000000',
  },
}
SCSS
$custom: #ab2838;
$custom-light: #cc6e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2838",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 352.672,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49185,
    "c": 0.16629,
    "h": 19.6
  },
  "luminance": 0.10461
}

Semantic roles & 50–950 ramp

primary
#AB2838
secondary
#6AC4B9
accent
#E5D143
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150807
muted
#837B7A

Preview Lab

Preview with #AB2838

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

Preview Lab → · Contrast checker → · Palette generator →

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