#AB339B#AB339B

#AB339B is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.7% C 0.193 H 333.8°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AB339B
RGBrgb(171, 51, 155)
HSLhsl(308, 54%, 44%)
HSVhsv(308, 70%, 67%)
CMYKcmyk(0%, 70.2%, 9.4%, 32.9%)
CIE-LABlab(43.35, 59.74, -31.10)
CIE-LCHlch(43.35, 67.35, 332.50°)
OKLaboklab(53.7% 0.173 -0.0851)
OKLCHoklch(53.7% 0.193 333.8)
XYZxyz(23.8950, 13.3941, 32.3308)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB339B #33AB43
analogous
#7F33AB #AB339B #AB335F
triadic
#AB339B #9BAB33 #339BAB
tetradic
#AB339B #AB7F33 #33AB43 #335FAB
square
#AB339B #AB7F33 #33AB43 #335FAB
split-complementary
#AB339B #5FAB33 #33AB7F
monochromatic
#4D1746 #7C2570 #AB339B #CB50BB #D97FCD

Accessibility & contrast

On white

5.71
#AB339B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AB339B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB339B
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB339B#FFFFFF#000000##FFFFFF
##AB339B1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305B9E
Deuteranopia (green-blind)
#5A6D98
Tritanopia (blue-blind)
#B33D63
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab339b;
/* rgb */ color: rgb(171, 51, 155);
/* oklch */ color: oklch(53.7% 0.193 333.8);
Tailwind
colors: {
  custom: {
    50: '#c775b9',
    500: '#ab339b',
    950: '#000000',
  },
}
SCSS
$custom: #ab339b;
$custom-light: #c775b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab339b",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 308,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53702,
    "c": 0.19281,
    "h": 333.8
  },
  "luminance": 0.13392
}

Semantic roles & 50–950 ramp

primary
#AB339B
secondary
#78C282
accent
#DD5E4A
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB339B

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

Preview Lab → · Contrast checker → · Palette generator →

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