#AB2F9E#AB2F9E

#AB2F9E is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.5% C 0.200 H 332.6°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AB2F9E
RGBrgb(171, 47, 158)
HSLhsl(306, 57%, 43%)
HSVhsv(306, 73%, 67%)
CMYKcmyk(0%, 72.5%, 7.6%, 32.9%)
CIE-LABlab(43.01, 61.62, -33.44)
CIE-LCHlch(43.01, 70.11, 331.51°)
OKLaboklab(53.5% 0.1774 -0.0918)
OKLCHoklch(53.5% 0.2 332.6)
XYZxyz(23.9827, 13.1616, 33.6184)
Luminance0.1316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F9E #2FAB3C
analogous
#7A2FAB #AB2F9E #AB2F60
triadic
#AB2F9E #9EAB2F #2F9EAB
tetradic
#AB2F9E #AB7A2F #2FAB3C #2F60AB
square
#AB2F9E #AB7A2F #2FAB3C #2F60AB
split-complementary
#AB2F9E #60AB2F #2FAB7A
monochromatic
#4B1545 #7B2272 #AB2F9E #CD4ABF #DA7AD0

Accessibility & contrast

On white

5.78
#AB2F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB2F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F9E
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F9E#FFFFFF#000000##FFFFFF
##AB2F9E1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295AA1
Deuteranopia (green-blind)
#576C9B
Tritanopia (blue-blind)
#B33C63
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2f9e;
/* rgb */ color: rgb(171, 47, 158);
/* oklch */ color: oklch(53.5% 0.200 332.6);
Tailwind
colors: {
  custom: {
    50: '#c874bb',
    500: '#ab2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f9e;
$custom-light: #c874bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f9e",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 306.29,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53502,
    "c": 0.19972,
    "h": 332.6
  },
  "luminance": 0.1316
}

Semantic roles & 50–950 ramp

primary
#AB2F9E
secondary
#73C37B
accent
#E05848
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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