#AB2E98#AB2E98

#AB2E98 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.1% C 0.196 H 334.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AB2E98
RGBrgb(171, 46, 152)
HSLhsl(309, 58%, 43%)
HSVhsv(309, 73%, 67%)
CMYKcmyk(0%, 73.1%, 11.1%, 32.9%)
CIE-LABlab(42.58, 61.03, -30.50)
CIE-LCHlch(42.58, 68.23, 333.45°)
OKLaboklab(53.1% 0.1779 -0.0833)
OKLCHoklch(53.1% 0.196 334.9)
XYZxyz(23.4393, 12.8810, 30.9515)
Luminance0.1288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E98 #2EAB41
analogous
#802EAB #AB2E98 #AB2E59
triadic
#AB2E98 #98AB2E #2E98AB
tetradic
#AB2E98 #AB802E #2EAB41 #2E59AB
square
#AB2E98 #AB802E #2EAB41 #2E59AB
split-complementary
#AB2E98 #59AB2E #2EAB80
monochromatic
#4B1442 #7B216D #AB2E98 #CE48BA #DB79CC

Accessibility & contrast

On white

5.87
#AB2E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB2E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E98
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E98#FFFFFF#000000##FFFFFF
##AB2E981.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D599B
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#B33860
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2e98;
/* rgb */ color: rgb(171, 46, 152);
/* oklch */ color: oklch(53.1% 0.196 334.9);
Tailwind
colors: {
  custom: {
    50: '#c873b6',
    500: '#ab2e98',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e98;
$custom-light: #c873b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e98",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 309.12,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53099,
    "c": 0.19646,
    "h": 334.9
  },
  "luminance": 0.12879
}

Semantic roles & 50–950 ramp

primary
#AB2E98
secondary
#72C37E
accent
#E15E47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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