#AB1C98#AB1C98

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

Color values

HEX#AB1C98
RGBrgb(171, 28, 152)
HSLhsl(308, 72%, 39%)
HSVhsv(308, 84%, 67%)
CMYKcmyk(0%, 83.6%, 11.1%, 32.9%)
CIE-LABlab(40.83, 66.07, -33.26)
CIE-LCHlch(40.83, 73.97, 333.28°)
OKLaboklab(51.84% 0.1928 -0.0912)
OKLCHoklch(51.84% 0.213 334.7)
XYZxyz(22.8776, 11.7576, 30.7642)
Luminance0.1176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1C98 #1CAB2F
analogous
#771CAB #AB1C98 #AB1C51
triadic
#AB1C98 #98AB1C #1C98AB
tetradic
#AB1C98 #AB771C #1CAB2F #1C51AB
square
#AB1C98 #AB771C #1CAB2F #1C51AB
split-complementary
#AB1C98 #51AB1C #1CAB77
monochromatic
#420B3B #761369 #AB1C98 #DC28C4 #E45DD2

Accessibility & contrast

On white

6.27
#AB1C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AB1C98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1C98
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1C98#FFFFFF#000000##FFFFFF
##AB1C981.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19539B
Deuteranopia (green-blind)
#546795
Tritanopia (blue-blind)
#B42C5B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab1c98;
/* rgb */ color: rgb(171, 28, 152);
/* oklch */ color: oklch(51.8% 0.213 334.7);
Tailwind
colors: {
  custom: {
    50: '#c86db7',
    500: '#ab1c98',
    950: '#000000',
  },
}
SCSS
$custom: #ab1c98;
$custom-light: #c86db7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1c98",
  "rgb": {
    "r": 171,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 307.972,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5184,
    "c": 0.21328,
    "h": 334.7
  },
  "luminance": 0.11755
}

Semantic roles & 50–950 ramp

primary
#AB1C98
secondary
#5AC969
accent
#EF5139
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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