#AB3198#AB3198

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

Color values

HEX#AB3198
RGBrgb(171, 49, 152)
HSLhsl(309, 55%, 43%)
HSVhsv(309, 71%, 67%)
CMYKcmyk(0%, 71.3%, 11.1%, 32.9%)
CIE-LABlab(42.95, 60.00, -29.92)
CIE-LCHlch(42.95, 67.05, 333.49°)
OKLaboklab(53.36% 0.1749 -0.0817)
OKLCHoklch(53.36% 0.193 334.9)
XYZxyz(23.5607, 13.1236, 30.9919)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3198 #31AB44
analogous
#8131AB #AB3198 #AB315B
triadic
#AB3198 #98AB31 #3198AB
tetradic
#AB3198 #AB8131 #31AB44 #315BAB
square
#AB3198 #AB8131 #31AB44 #315BAB
split-complementary
#AB3198 #5BAB31 #31AB81
monochromatic
#4C1643 #7B236E #AB3198 #CC4DB8 #DA7DCB

Accessibility & contrast

On white

5.79
#AB3198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB3198
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3198#FFFFFF#000000##FFFFFF
##AB31981.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305A9B
Deuteranopia (green-blind)
#5B6C95
Tritanopia (blue-blind)
#B33A61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab3198;
/* rgb */ color: rgb(171, 49, 152);
/* oklch */ color: oklch(53.4% 0.193 334.9);
Tailwind
colors: {
  custom: {
    50: '#c874b6',
    500: '#ab3198',
    950: '#000000',
  },
}
SCSS
$custom: #ab3198;
$custom-light: #c874b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3198",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 309.344,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53363,
    "c": 0.193,
    "h": 334.9
  },
  "luminance": 0.13122
}

Semantic roles & 50–950 ramp

primary
#AB3198
secondary
#75C281
accent
#DF6049
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB3198

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

Preview Lab → · Contrast checker → · Palette generator →

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