#AB2842#AB2842

#AB2842 is a mid, vivid red. Relative luminance 0.106; OKLCH L 49.4% C 0.166 H 14.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#AB2842
RGBrgb(171, 40, 66)
HSLhsl(348, 62%, 41%)
HSVhsv(348, 77%, 67%)
CMYKcmyk(0%, 76.6%, 61.4%, 32.9%)
CIE-LABlab(38.85, 53.55, 17.55)
CIE-LCHlch(38.85, 56.35, 18.15°)
OKLaboklab(49.38% 0.1606 0.0429)
OKLCHoklch(49.38% 0.166 14.9)
XYZxyz(18.5387, 10.5716, 6.2176)
Luminance0.1057 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2842 #28AB91
analogous
#AB2884 #AB2842 #AB5028
triadic
#AB2842 #42AB28 #2842AB
tetradic
#AB2842 #84AB28 #28AB91 #5028AB
square
#AB2842 #84AB28 #28AB91 #5028AB
split-complementary
#AB2842 #28AB50 #2884AB
monochromatic
#48111C #791C2F #AB2842 #D23E5C #DE7086

Accessibility & contrast

On white

6.74
#AB2842 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#AB2842 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2842
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2842#FFFFFF#000000##FFFFFF
##AB28421.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4A42
Deuteranopia (green-blind)
#6E653E
Tritanopia (blue-blind)
#BC0033
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #ab2842;
/* rgb */ color: rgb(171, 40, 66);
/* oklch */ color: oklch(49.4% 0.166 14.9);
Tailwind
colors: {
  custom: {
    50: '#cb6e76',
    500: '#ab2842',
    950: '#000000',
  },
}
SCSS
$custom: #ab2842;
$custom-light: #cb6e76;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2842",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 66
  },
  "hsl": {
    "h": 348.092,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49384,
    "c": 0.16628,
    "h": 14.9
  },
  "luminance": 0.10569
}

Semantic roles & 50–950 ramp

primary
#AB2842
secondary
#6AC4B3
accent
#E5C543
background
#FDF7F7
surface
#FAEDED
border
#D3C8C8
text
#150808
muted
#837B7B

Preview Lab

Preview with #AB2842

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

Preview Lab → · Contrast checker → · Palette generator →

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