#AB3798#AB3798

#AB3798 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.9% C 0.186 H 335.1°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AB3798
RGBrgb(171, 55, 152)
HSLhsl(310, 51%, 44%)
HSVhsv(310, 68%, 67%)
CMYKcmyk(0%, 67.8%, 11.1%, 32.9%)
CIE-LABlab(43.74, 57.77, -28.69)
CIE-LCHlch(43.74, 64.50, 333.59°)
OKLaboklab(53.94% 0.1683 -0.0782)
OKLCHoklch(53.94% 0.186 335.1)
XYZxyz(23.8285, 13.6593, 31.0812)
Luminance0.1366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3798 #37AB4A
analogous
#8437AB #AB3798 #AB375E
triadic
#AB3798 #98AB37 #3798AB
tetradic
#AB3798 #AB8437 #37AB4A #375EAB
square
#AB3798 #AB8437 #37AB4A #375EAB
split-complementary
#AB3798 #5EAB37 #37AB84
monochromatic
#4E1946 #7D286F #AB3798 #C956B6 #D885CA

Accessibility & contrast

On white

5.63
#AB3798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AB3798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3798
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3798#FFFFFF#000000##FFFFFF
##AB37981.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375C9B
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#B33F63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab3798;
/* rgb */ color: rgb(171, 55, 152);
/* oklch */ color: oklch(53.9% 0.186 335.1);
Tailwind
colors: {
  custom: {
    50: '#c777b6',
    500: '#ab3798',
    950: '#000000',
  },
}
SCSS
$custom: #ab3798;
$custom-light: #c777b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3798",
  "rgb": {
    "r": 171,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 309.828,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53936,
    "c": 0.18558,
    "h": 335.1
  },
  "luminance": 0.13657
}

Semantic roles & 50–950 ramp

primary
#AB3798
secondary
#7CC188
accent
#DB644D
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#130911
muted
#827B80

Preview Lab

Preview with #AB3798

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

Preview Lab → · Contrast checker → · Palette generator →

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