#AB2F9C#AB2F9C

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

Color values

HEX#AB2F9C
RGBrgb(171, 47, 156)
HSLhsl(307, 57%, 43%)
HSVhsv(307, 73%, 67%)
CMYKcmyk(0%, 72.5%, 8.8%, 32.9%)
CIE-LABlab(42.90, 61.31, -32.40)
CIE-LCHlch(42.90, 69.34, 332.14°)
OKLaboklab(53.4% 0.1772 -0.0888)
OKLCHoklch(53.4% 0.198 333.4)
XYZxyz(23.8120, 13.0933, 32.7192)
Luminance0.1309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F9C #2FAB3E
analogous
#7C2FAB #AB2F9C #AB2F5E
triadic
#AB2F9C #9CAB2F #2F9CAB
tetradic
#AB2F9C #AB7C2F #2FAB3E #2F5EAB
square
#AB2F9C #AB7C2F #2FAB3E #2F5EAB
split-complementary
#AB2F9C #5EAB2F #2FAB7C
monochromatic
#4B1544 #7B2270 #AB2F9C #CD4ABD #DA7ACF

Accessibility & contrast

On white

5.80
#AB2F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB2F9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F9C
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F9C#FFFFFF#000000##FFFFFF
##AB2F9C1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5A9F
Deuteranopia (green-blind)
#586C99
Tritanopia (blue-blind)
#B33B62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2f9c;
/* rgb */ color: rgb(171, 47, 156);
/* oklch */ color: oklch(53.4% 0.198 333.4);
Tailwind
colors: {
  custom: {
    50: '#c874b9',
    500: '#ab2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f9c;
$custom-light: #c874b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f9c",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 307.258,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53395,
    "c": 0.19824,
    "h": 333.4
  },
  "luminance": 0.13091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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