#AB418E#AB418E

#AB418E is a mid, vivid pink. Relative luminance 0.144; OKLCH L 54.6% C 0.164 H 339.9°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AB418E
RGBrgb(171, 65, 142)
HSLhsl(316, 45%, 46%)
HSVhsv(316, 62%, 67%)
CMYKcmyk(0%, 62%, 17%, 32.9%)
CIE-LABlab(44.79, 52.09, -21.03)
CIE-LCHlch(44.79, 56.17, 338.02°)
OKLaboklab(54.56% 0.1543 -0.0566)
OKLCHoklch(54.56% 0.164 339.9)
XYZxyz(23.5678, 14.3936, 27.1229)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB418E #41AB5E
analogous
#9341AB #AB418E #AB4159
triadic
#AB418E #8EAB41 #418EAB
tetradic
#AB418E #AB9341 #41AB5E #4159AB
square
#AB418E #AB9341 #41AB5E #4159AB
split-complementary
#AB418E #59AB41 #41AB93
monochromatic
#521F44 #7F3069 #AB418E #C465AA #D591C3

Accessibility & contrast

On white

5.41
#AB418E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AB418E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB418E
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB418E#FFFFFF#000000##FFFFFF
##AB418E1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475F90
Deuteranopia (green-blind)
#66708B
Tritanopia (blue-blind)
#B44461
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab418e;
/* rgb */ color: rgb(171, 65, 142);
/* oklch */ color: oklch(54.6% 0.164 339.9);
Tailwind
colors: {
  custom: {
    50: '#c77caf',
    500: '#ab418e',
    950: '#000000',
  },
}
SCSS
$custom: #ab418e;
$custom-light: #c77caf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab418e",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 316.415,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54557,
    "c": 0.16437,
    "h": 339.9
  },
  "luminance": 0.14392
}

Semantic roles & 50–950 ramp

primary
#AB418E
secondary
#87C197
accent
#D57753
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#130A10
muted
#827C7F

Preview Lab

Preview with #AB418E

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

Preview Lab → · Contrast checker → · Palette generator →

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