#AB339D#AB339D

#AB339D is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.8% C 0.194 H 333.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AB339D
RGBrgb(171, 51, 157)
HSLhsl(307, 54%, 44%)
HSVhsv(307, 70%, 67%)
CMYKcmyk(0%, 70.2%, 8.2%, 32.9%)
CIE-LABlab(43.45, 60.06, -32.14)
CIE-LCHlch(43.45, 68.12, 331.84°)
OKLaboklab(53.81% 0.1732 -0.0881)
OKLCHoklch(53.81% 0.194 333)
XYZxyz(24.0643, 13.4619, 33.2227)
Luminance0.1346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB339D #33AB41
analogous
#7D33AB #AB339D #AB3361
triadic
#AB339D #9DAB33 #339DAB
tetradic
#AB339D #AB7D33 #33AB41 #3361AB
square
#AB339D #AB7D33 #33AB41 #3361AB
split-complementary
#AB339D #61AB33 #33AB7D
monochromatic
#4D1746 #7C2572 #AB339D #CB50BD #D97FCF

Accessibility & contrast

On white

5.69
#AB339D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AB339D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB339D
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB339D#FFFFFF#000000##FFFFFF
##AB339D1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5CA0
Deuteranopia (green-blind)
#5A6D9A
Tritanopia (blue-blind)
#B33E64
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab339d;
/* rgb */ color: rgb(171, 51, 157);
/* oklch */ color: oklch(53.8% 0.194 333.0);
Tailwind
colors: {
  custom: {
    50: '#c775ba',
    500: '#ab339d',
    950: '#000000',
  },
}
SCSS
$custom: #ab339d;
$custom-light: #c775ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab339d",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 307,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53806,
    "c": 0.19431,
    "h": 333
  },
  "luminance": 0.1346
}

Semantic roles & 50–950 ramp

primary
#AB339D
secondary
#78C280
accent
#DD5C4A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB339D

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

Preview Lab → · Contrast checker → · Palette generator →

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