#AB4158#AB4158

#AB4158 is a mid, vivid red. Relative luminance 0.131; OKLCH L 52.6% C 0.140 H 10.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AB4158
RGBrgb(171, 65, 88)
HSLhsl(347, 45%, 46%)
HSVhsv(347, 62%, 67%)
CMYKcmyk(0%, 62%, 48.5%, 32.9%)
CIE-LABlab(42.98, 45.37, 9.42)
CIE-LCHlch(42.98, 46.34, 11.74°)
OKLaboklab(52.62% 0.1376 0.0243)
OKLCHoklch(52.62% 0.14 10)
XYZxyz(20.4479, 13.1456, 10.6912)
Luminance0.1314 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4158 #41AB94
analogous
#AB418D #AB4158 #AB5F41
triadic
#AB4158 #58AB41 #4158AB
tetradic
#AB4158 #8DAB41 #41AB94 #5F41AB
square
#AB4158 #8DAB41 #41AB94 #5F41AB
split-complementary
#AB4158 #41AB5F #418DAB
monochromatic
#521F2A #7F3041 #AB4158 #C4657A #D591A0

Accessibility & contrast

On white

5.79
#AB4158 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB4158 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4158
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4158#FFFFFF#000000##FFFFFF
##AB41581.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#585858
Deuteranopia (green-blind)
#736D56
Tritanopia (blue-blind)
#BA324A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab4158;
/* rgb */ color: rgb(171, 65, 88);
/* oklch */ color: oklch(52.6% 0.140 10.0);
Tailwind
colors: {
  custom: {
    50: '#c97b87',
    500: '#ab4158',
    950: '#000000',
  },
}
SCSS
$custom: #ab4158;
$custom-light: #c97b87;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4158",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 88
  },
  "hsl": {
    "h": 346.981,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52622,
    "c": 0.13976,
    "h": 10
  },
  "luminance": 0.13143
}

Semantic roles & 50–950 ramp

primary
#AB4158
secondary
#87C1B4
accent
#D5B953
background
#FCF7F8
surface
#F9EEEF
border
#D2C9CA
text
#140A0B
muted
#827C7C

Preview Lab

Preview with #AB4158

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

Preview Lab → · Contrast checker → · Palette generator →

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