#AB2E9C#AB2E9C

#AB2E9C is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.3% C 0.199 H 333.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AB2E9C
RGBrgb(171, 46, 156)
HSLhsl(307, 58%, 43%)
HSVhsv(307, 73%, 67%)
CMYKcmyk(0%, 73.1%, 8.8%, 32.9%)
CIE-LABlab(42.78, 61.65, -32.59)
CIE-LCHlch(42.78, 69.73, 332.14°)
OKLaboklab(53.31% 0.1782 -0.0894)
OKLCHoklch(53.31% 0.199 333.4)
XYZxyz(23.7725, 13.0142, 32.7060)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E9C #2EAB3D
analogous
#7C2EAB #AB2E9C #AB2E5D
triadic
#AB2E9C #9CAB2E #2E9CAB
tetradic
#AB2E9C #AB7C2E #2EAB3D #2E5DAB
square
#AB2E9C #AB7C2E #2EAB3D #2E5DAB
split-complementary
#AB2E9C #5DAB2E #2EAB7C
monochromatic
#4B1444 #7B2170 #AB2E9C #CE48BE #DB79CF

Accessibility & contrast

On white

5.83
#AB2E9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2E9C
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E9C#FFFFFF#000000##FFFFFF
##AB2E9C1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5A9F
Deuteranopia (green-blind)
#586B99
Tritanopia (blue-blind)
#B33A62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2e9c;
/* rgb */ color: rgb(171, 46, 156);
/* oklch */ color: oklch(53.3% 0.199 333.4);
Tailwind
colors: {
  custom: {
    50: '#c873b9',
    500: '#ab2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e9c;
$custom-light: #c873b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e9c",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 307.2,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53309,
    "c": 0.19936,
    "h": 333.4
  },
  "luminance": 0.13012
}

Semantic roles & 50–950 ramp

primary
#AB2E9C
secondary
#72C37C
accent
#E15947
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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