#AB2E8F#AB2E8F

#AB2E8F is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.6% C 0.190 H 338.5°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AB2E8F
RGBrgb(171, 46, 143)
HSLhsl(313, 58%, 43%)
HSVhsv(313, 73%, 67%)
CMYKcmyk(0%, 73.1%, 16.4%, 32.9%)
CIE-LABlab(42.15, 59.71, -25.73)
CIE-LCHlch(42.15, 65.01, 336.69°)
OKLaboklab(52.65% 0.1769 -0.0697)
OKLCHoklch(52.65% 0.19 338.5)
XYZxyz(22.7300, 12.5972, 27.2157)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E8F #2EAB4A
analogous
#892EAB #AB2E8F #AB2E50
triadic
#AB2E8F #8FAB2E #2E8FAB
tetradic
#AB2E8F #AB892E #2EAB4A #2E50AB
square
#AB2E8F #AB892E #2EAB4A #2E50AB
split-complementary
#AB2E8F #50AB2E #2EAB89
monochromatic
#4B143E #7B2167 #AB2E8F #CE48B0 #DB79C5

Accessibility & contrast

On white

5.97
#AB2E8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB2E8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E8F
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E8F#FFFFFF#000000##FFFFFF
##AB2E8F1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345792
Deuteranopia (green-blind)
#5D6A8C
Tritanopia (blue-blind)
#B5345B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2e8f;
/* rgb */ color: rgb(171, 46, 143);
/* oklch */ color: oklch(52.6% 0.190 338.5);
Tailwind
colors: {
  custom: {
    50: '#c873b0',
    500: '#ab2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e8f;
$custom-light: #c873b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e8f",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 313.44,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52645,
    "c": 0.19017,
    "h": 338.5
  },
  "luminance": 0.12595
}

Semantic roles & 50–950 ramp

primary
#AB2E8F
secondary
#72C384
accent
#E16947
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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