#AB2F9B#AB2F9B

#AB2F9B is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.3% C 0.198 H 333.8°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AB2F9B
RGBrgb(171, 47, 155)
HSLhsl(308, 57%, 43%)
HSVhsv(308, 73%, 67%)
CMYKcmyk(0%, 72.5%, 9.4%, 32.9%)
CIE-LABlab(42.85, 61.15, -31.88)
CIE-LCHlch(42.85, 68.97, 332.47°)
OKLaboklab(53.34% 0.1772 -0.0873)
OKLCHoklch(53.34% 0.198 333.8)
XYZxyz(23.7277, 13.0595, 32.2751)
Luminance0.1306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F9B #2FAB3F
analogous
#7D2FAB #AB2F9B #AB2F5D
triadic
#AB2F9B #9BAB2F #2F9BAB
tetradic
#AB2F9B #AB7D2F #2FAB3F #2F5DAB
square
#AB2F9B #AB7D2F #2FAB3F #2F5DAB
split-complementary
#AB2F9B #5DAB2F #2FAB7D
monochromatic
#4B1544 #7B226F #AB2F9B #CD4ABC #DA7ACE

Accessibility & contrast

On white

5.81
#AB2F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AB2F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F9B
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F9B#FFFFFF#000000##FFFFFF
##AB2F9B1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5A9E
Deuteranopia (green-blind)
#596C98
Tritanopia (blue-blind)
#B33A62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2f9b;
/* rgb */ color: rgb(171, 47, 155);
/* oklch */ color: oklch(53.3% 0.198 333.8);
Tailwind
colors: {
  custom: {
    50: '#c874b9',
    500: '#ab2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f9b;
$custom-light: #c874b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f9b",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 307.742,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53342,
    "c": 0.19751,
    "h": 333.8
  },
  "luminance": 0.13058
}

Semantic roles & 50–950 ramp

primary
#AB2F9B
secondary
#73C37D
accent
#E05B48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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