#AB339E#AB339E

#AB339E is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.9% C 0.195 H 332.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AB339E
RGBrgb(171, 51, 158)
HSLhsl(307, 54%, 44%)
HSVhsv(307, 70%, 67%)
CMYKcmyk(0%, 70.2%, 7.6%, 32.9%)
CIE-LABlab(43.50, 60.21, -32.66)
CIE-LCHlch(43.50, 68.50, 331.52°)
OKLaboklab(53.86% 0.1733 -0.0896)
OKLCHoklch(53.86% 0.195 332.7)
XYZxyz(24.1500, 13.4962, 33.6742)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB339E #33AB40
analogous
#7C33AB #AB339E #AB3362
triadic
#AB339E #9EAB33 #339EAB
tetradic
#AB339E #AB7C33 #33AB40 #3362AB
square
#AB339E #AB7C33 #33AB40 #3362AB
split-complementary
#AB339E #62AB33 #33AB7C
monochromatic
#4D1747 #7C2572 #AB339E #CB50BE #D97FCF

Accessibility & contrast

On white

5.68
#AB339E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AB339E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB339E
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB339E#FFFFFF#000000##FFFFFF
##AB339E1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5CA1
Deuteranopia (green-blind)
#596D9B
Tritanopia (blue-blind)
#B23F64
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab339e;
/* rgb */ color: rgb(171, 51, 158);
/* oklch */ color: oklch(53.9% 0.195 332.7);
Tailwind
colors: {
  custom: {
    50: '#c776bb',
    500: '#ab339e',
    950: '#000000',
  },
}
SCSS
$custom: #ab339e;
$custom-light: #c776bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab339e",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 306.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53859,
    "c": 0.19506,
    "h": 332.7
  },
  "luminance": 0.13494
}

Semantic roles & 50–950 ramp

primary
#AB339E
secondary
#78C280
accent
#DD5A4A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB339E

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

Preview Lab → · Contrast checker → · Palette generator →

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