#AB3781#AB3781

#AB3781 is a mid, vivid pink. Relative luminance 0.130; OKLCH L 52.9% C 0.170 H 345.3°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AB3781
RGBrgb(171, 55, 129)
HSLhsl(322, 51%, 44%)
HSVhsv(322, 68%, 67%)
CMYKcmyk(0%, 67.8%, 24.6%, 32.9%)
CIE-LABlab(42.73, 54.43, -16.29)
CIE-LCHlch(42.73, 56.81, 343.34°)
OKLaboklab(52.87% 0.1643 -0.0432)
OKLCHoklch(52.87% 0.17 345.3)
XYZxyz(22.1241, 12.9775, 22.1044)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3781 #37AB61
analogous
#9B37AB #AB3781 #AB3747
triadic
#AB3781 #81AB37 #3781AB
tetradic
#AB3781 #AB9B37 #37AB61 #3747AB
square
#AB3781 #AB9B37 #37AB61 #3747AB
split-complementary
#AB3781 #47AB37 #37AB9B
monochromatic
#4E193B #7D285E #AB3781 #C9569F #D885BA

Accessibility & contrast

On white

5.84
#AB3781 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AB3781 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3781
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3781#FFFFFF#000000##FFFFFF
##AB37811.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445883
Deuteranopia (green-blind)
#666C7E
Tritanopia (blue-blind)
#B63557
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab3781;
/* rgb */ color: rgb(171, 55, 129);
/* oklch */ color: oklch(52.9% 0.170 345.3);
Tailwind
colors: {
  custom: {
    50: '#c876a5',
    500: '#ab3781',
    950: '#000000',
  },
}
SCSS
$custom: #ab3781;
$custom-light: #c876a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3781",
  "rgb": {
    "r": 171,
    "g": 55,
    "b": 129
  },
  "hsl": {
    "h": 321.724,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52868,
    "c": 0.16988,
    "h": 345.3
  },
  "luminance": 0.12975
}

Semantic roles & 50–950 ramp

primary
#AB3781
secondary
#7CC195
accent
#DB804D
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB3781

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

Preview Lab → · Contrast checker → · Palette generator →

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