#AB399B#AB399B

#AB399B is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.3% C 0.185 H 333.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AB399B
RGBrgb(171, 57, 155)
HSLhsl(308, 50%, 45%)
HSVhsv(308, 67%, 67%)
CMYKcmyk(0%, 66.7%, 9.4%, 32.9%)
CIE-LABlab(44.16, 57.46, -29.82)
CIE-LCHlch(44.16, 64.74, 332.57°)
OKLaboklab(54.29% 0.1663 -0.0815)
OKLCHoklch(54.29% 0.185 333.9)
XYZxyz(24.1743, 13.9527, 32.4239)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB399B #39AB49
analogous
#8239AB #AB399B #AB3962
triadic
#AB399B #9BAB39 #399BAB
tetradic
#AB399B #AB8239 #39AB49 #3962AB
square
#AB399B #AB8239 #39AB49 #3962AB
split-complementary
#AB399B #62AB39 #39AB82
monochromatic
#4F1A48 #7D2A71 #AB399B #C859B8 #D787CC

Accessibility & contrast

On white

5.54
#AB399B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AB399B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB399B
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB399B#FFFFFF#000000##FFFFFF
##AB399B1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375E9E
Deuteranopia (green-blind)
#5D6E98
Tritanopia (blue-blind)
#B34265
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab399b;
/* rgb */ color: rgb(171, 57, 155);
/* oklch */ color: oklch(54.3% 0.185 333.9);
Tailwind
colors: {
  custom: {
    50: '#c778b9',
    500: '#ab399b',
    950: '#000000',
  },
}
SCSS
$custom: #ab399b;
$custom-light: #c778b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab399b",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 308.421,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54291,
    "c": 0.18521,
    "h": 333.9
  },
  "luminance": 0.13951
}

Semantic roles & 50–950 ramp

primary
#AB399B
secondary
#7FC188
accent
#DA624E
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#130A11
muted
#827C80

Preview Lab

Preview with #AB399B

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

Preview Lab → · Contrast checker → · Palette generator →

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