#AB2542#AB2542

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

Color values

HEX#AB2542
RGBrgb(171, 37, 66)
HSLhsl(347, 64%, 41%)
HSVhsv(347, 78%, 67%)
CMYKcmyk(0%, 78.4%, 61.4%, 32.9%)
CIE-LABlab(38.51, 54.50, 17.10)
CIE-LCHlch(38.51, 57.12, 17.42°)
OKLaboklab(49.13% 0.1637 0.0419)
OKLCHoklch(49.13% 0.169 14.3)
XYZxyz(18.4414, 10.3772, 6.1851)
Luminance0.1037 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2542 #25AB8E
analogous
#AB2585 #AB2542 #AB4B25
triadic
#AB2542 #42AB25 #2542AB
tetradic
#AB2542 #85AB25 #25AB8E #4B25AB
square
#AB2542 #85AB25 #25AB8E #4B25AB
split-complementary
#AB2542 #25AB4B #2585AB
monochromatic
#460F1B #791A2F #AB2542 #D4395B #DF6B84

Accessibility & contrast

On white

6.83
#AB2542 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#AB2542 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2542
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2542#FFFFFF#000000##FFFFFF
##AB25421.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4942
Deuteranopia (green-blind)
#6D653E
Tritanopia (blue-blind)
#BC0031
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #ab2542;
/* rgb */ color: rgb(171, 37, 66);
/* oklch */ color: oklch(49.1% 0.169 14.3);
Tailwind
colors: {
  custom: {
    50: '#cb6d76',
    500: '#ab2542',
    950: '#000000',
  },
}
SCSS
$custom: #ab2542;
$custom-light: #cb6d76;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2542",
  "rgb": {
    "r": 171,
    "g": 37,
    "b": 66
  },
  "hsl": {
    "h": 347.015,
    "s": 64.423,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49133,
    "c": 0.16897,
    "h": 14.3
  },
  "luminance": 0.10374
}

Semantic roles & 50–950 ramp

primary
#AB2542
secondary
#67C5B1
accent
#E7C340
background
#FDF6F7
surface
#FAECED
border
#D3C7C8
text
#150808
muted
#837A7B

Preview Lab

Preview with #AB2542

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

Preview Lab → · Contrast checker → · Palette generator →

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