#AB1C97#AB1C97

#AB1C97 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.8% C 0.213 H 335.1°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AB1C97
RGBrgb(171, 28, 151)
HSLhsl(308, 72%, 39%)
HSVhsv(308, 84%, 67%)
CMYKcmyk(0%, 83.6%, 11.7%, 32.9%)
CIE-LABlab(40.78, 65.93, -32.74)
CIE-LCHlch(40.78, 73.61, 333.60°)
OKLaboklab(51.79% 0.1928 -0.0897)
OKLCHoklch(51.79% 0.213 335.1)
XYZxyz(22.7961, 11.7249, 30.3347)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1C97 #1CAB30
analogous
#781CAB #AB1C97 #AB1C4F
triadic
#AB1C97 #97AB1C #1C97AB
tetradic
#AB1C97 #AB781C #1CAB30 #1C4FAB
square
#AB1C97 #AB781C #1CAB30 #1C4FAB
split-complementary
#AB1C97 #4FAB1C #1CAB78
monochromatic
#420B3A #761369 #AB1C97 #DC28C3 #E45DD2

Accessibility & contrast

On white

6.28
#AB1C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AB1C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1C97
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1C97#FFFFFF#000000##FFFFFF
##AB1C971.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B539A
Deuteranopia (green-blind)
#546794
Tritanopia (blue-blind)
#B42B5B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab1c97;
/* rgb */ color: rgb(171, 28, 151);
/* oklch */ color: oklch(51.8% 0.213 335.1);
Tailwind
colors: {
  custom: {
    50: '#c86db6',
    500: '#ab1c97',
    950: '#000000',
  },
}
SCSS
$custom: #ab1c97;
$custom-light: #c86db6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1c97",
  "rgb": {
    "r": 171,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 308.392,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51785,
    "c": 0.21261,
    "h": 335.1
  },
  "luminance": 0.11723
}

Semantic roles & 50–950 ramp

primary
#AB1C97
secondary
#5AC96A
accent
#EF5339
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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