#AB2742#AB2742

#AB2742 is a mid, vivid red. Relative luminance 0.105; OKLCH L 49.3% C 0.167 H 14.7°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#AB2742
RGBrgb(171, 39, 66)
HSLhsl(348, 63%, 41%)
HSVhsv(348, 77%, 67%)
CMYKcmyk(0%, 77.2%, 61.4%, 32.9%)
CIE-LABlab(38.73, 53.87, 17.40)
CIE-LCHlch(38.73, 56.61, 17.90°)
OKLaboklab(49.3% 0.1617 0.0425)
OKLCHoklch(49.3% 0.167 14.7)
XYZxyz(18.5054, 10.5050, 6.2065)
Luminance0.1050 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2742 #27AB90
analogous
#AB2784 #AB2742 #AB4E27
triadic
#AB2742 #42AB27 #2742AB
tetradic
#AB2742 #84AB27 #27AB90 #4E27AB
square
#AB2742 #84AB27 #27AB90 #4E27AB
split-complementary
#AB2742 #27AB4E #2784AB
monochromatic
#47101C #791C2F #AB2742 #D33D5B #DE6E85

Accessibility & contrast

On white

6.77
#AB2742 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#AB2742 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2742
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2742#FFFFFF#000000##FFFFFF
##AB27421.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.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: #ab2742;
/* rgb */ color: rgb(171, 39, 66);
/* oklch */ color: oklch(49.3% 0.167 14.7);
Tailwind
colors: {
  custom: {
    50: '#cb6d76',
    500: '#ab2742',
    950: '#000000',
  },
}
SCSS
$custom: #ab2742;
$custom-light: #cb6d76;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2742",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 66
  },
  "hsl": {
    "h": 347.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49298,
    "c": 0.16719,
    "h": 14.7
  },
  "luminance": 0.10502
}

Semantic roles & 50–950 ramp

primary
#AB2742
secondary
#69C5B2
accent
#E6C442
background
#FDF7F7
surface
#FAEDED
border
#D3C8C8
text
#150808
muted
#837B7B

Preview Lab

Preview with #AB2742

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

Preview Lab → · Contrast checker → · Palette generator →

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