#AB198D#AB198D

#AB198D is a mid, highly saturated pink. Relative luminance 0.113; OKLCH L 51.1% C 0.208 H 338.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#AB198D
RGBrgb(171, 25, 141)
HSLhsl(312, 74%, 38%)
HSVhsv(312, 85%, 67%)
CMYKcmyk(0%, 85.4%, 17.5%, 32.9%)
CIE-LABlab(40.05, 65.19, -27.79)
CIE-LCHlch(40.05, 70.87, 336.91°)
OKLaboklab(51.1% 0.1941 -0.0755)
OKLCHoklch(51.1% 0.208 338.8)
XYZxyz(21.9505, 11.2785, 26.2151)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB198D #19AB37
analogous
#8019AB #AB198D #AB1944
triadic
#AB198D #8DAB19 #198DAB
tetradic
#AB198D #AB8019 #19AB37 #1944AB
square
#AB198D #AB8019 #19AB37 #1944AB
split-complementary
#AB198D #44AB19 #19AB80
monochromatic
#400935 #761161 #AB198D #DF22B8 #E758C9

Accessibility & contrast

On white

6.45
#AB198D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#AB198D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB198D
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB198D#FFFFFF#000000##FFFFFF
##AB198D1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245090
Deuteranopia (green-blind)
#58668A
Tritanopia (blue-blind)
#B52354
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #ab198d;
/* rgb */ color: rgb(171, 25, 141);
/* oklch */ color: oklch(51.1% 0.208 338.8);
Tailwind
colors: {
  custom: {
    50: '#c86bae',
    500: '#ab198d',
    950: '#000000',
  },
}
SCSS
$custom: #ab198d;
$custom-light: #c86bae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab198d",
  "rgb": {
    "r": 171,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 312.329,
    "s": 74.49,
    "l": 38.431
  },
  "oklch": {
    "l": 0.51099,
    "c": 0.20826,
    "h": 338.8
  },
  "luminance": 0.11276
}

Semantic roles & 50–950 ramp

primary
#AB198D
secondary
#56CA6E
accent
#F15D37
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB198D

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

Preview Lab → · Contrast checker → · Palette generator →

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