#AB399E#AB399E

#AB399E is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.4% C 0.188 H 332.7°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AB399E
RGBrgb(171, 57, 158)
HSLhsl(307, 50%, 45%)
HSVhsv(307, 67%, 67%)
CMYKcmyk(0%, 66.7%, 7.6%, 32.9%)
CIE-LABlab(44.31, 57.94, -31.39)
CIE-LCHlch(44.31, 65.90, 331.55°)
OKLaboklab(54.45% 0.1666 -0.086)
OKLCHoklch(54.45% 0.188 332.7)
XYZxyz(24.4293, 14.0547, 33.7673)
Luminance0.1405 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB399E #39AB46
analogous
#7F39AB #AB399E #AB3965
triadic
#AB399E #9EAB39 #399EAB
tetradic
#AB399E #AB7F39 #39AB46 #3965AB
square
#AB399E #AB7F39 #39AB46 #3965AB
split-complementary
#AB399E #65AB39 #39AB7F
monochromatic
#4F1A49 #7D2A74 #AB399E #C859BB #D787CE

Accessibility & contrast

On white

5.51
#AB399E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AB399E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB399E
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB399E#FFFFFF#000000##FFFFFF
##AB399E1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355EA1
Deuteranopia (green-blind)
#5C6F9B
Tritanopia (blue-blind)
#B24366
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab399e;
/* rgb */ color: rgb(171, 57, 158);
/* oklch */ color: oklch(54.4% 0.188 332.7);
Tailwind
colors: {
  custom: {
    50: '#c778bb',
    500: '#ab399e',
    950: '#000000',
  },
}
SCSS
$custom: #ab399e;
$custom-light: #c778bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab399e",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 306.842,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54445,
    "c": 0.18752,
    "h": 332.7
  },
  "luminance": 0.14053
}

Semantic roles & 50–950 ramp

primary
#AB399E
secondary
#7FC186
accent
#DA5E4E
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB399E

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

Preview Lab → · Contrast checker → · Palette generator →

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