#AB3158#AB3158

#AB3158 is a mid, vivid pink. Relative luminance 0.116; OKLCH L 50.8% C 0.160 H 5.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#AB3158
RGBrgb(171, 49, 88)
HSLhsl(341, 55%, 43%)
HSVhsv(341, 71%, 67%)
CMYKcmyk(0%, 71.3%, 48.5%, 32.9%)
CIE-LABlab(40.51, 52.10, 5.93)
CIE-LCHlch(40.51, 52.44, 6.49°)
OKLaboklab(50.78% 0.1591 0.0157)
OKLCHoklch(50.78% 0.16 5.6)
XYZxyz(19.6560, 11.5617, 10.4272)
Luminance0.1156 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3158 #31AB84
analogous
#AB3195 #AB3158 #AB4731
triadic
#AB3158 #58AB31 #3158AB
tetradic
#AB3158 #95AB31 #31AB84 #4731AB
square
#AB3158 #95AB31 #31AB84 #4731AB
split-complementary
#AB3158 #31AB47 #3195AB
monochromatic
#4C1627 #7B2340 #AB3158 #CC4D76 #DA7D9A

Accessibility & contrast

On white

6.34
#AB3158 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#AB3158 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3158
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3158#FFFFFF#000000##FFFFFF
##AB31581.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5059
Deuteranopia (green-blind)
#6D6855
Tritanopia (blue-blind)
#BA1B41
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab3158;
/* rgb */ color: rgb(171, 49, 88);
/* oklch */ color: oklch(50.8% 0.160 5.6);
Tailwind
colors: {
  custom: {
    50: '#c97286',
    500: '#ab3158',
    950: '#000000',
  },
}
SCSS
$custom: #ab3158;
$custom-light: #c97286;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3158",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 88
  },
  "hsl": {
    "h": 340.82,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50784,
    "c": 0.15982,
    "h": 5.6
  },
  "luminance": 0.11559
}

Semantic roles & 50–950 ramp

primary
#AB3158
secondary
#75C2AA
accent
#DFAF49
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AB3158

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

Preview Lab → · Contrast checker → · Palette generator →

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