#AB3299#AB3299

#AB3299 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.5% C 0.193 H 334.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AB3299
RGBrgb(171, 50, 153)
HSLhsl(309, 55%, 43%)
HSVhsv(309, 71%, 67%)
CMYKcmyk(0%, 70.8%, 10.5%, 32.9%)
CIE-LABlab(43.12, 59.80, -30.25)
CIE-LCHlch(43.12, 67.01, 333.16°)
OKLaboklab(53.51% 0.1739 -0.0827)
OKLCHoklch(53.51% 0.193 334.6)
XYZxyz(23.6852, 13.2411, 31.4392)
Luminance0.1324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3299 #32AB44
analogous
#8032AB #AB3299 #AB325C
triadic
#AB3299 #99AB32 #3299AB
tetradic
#AB3299 #AB8032 #32AB44 #325CAB
square
#AB3299 #AB8032 #32AB44 #325CAB
split-complementary
#AB3299 #5CAB32 #32AB80
monochromatic
#4C1644 #7C246F #AB3299 #CB4FB9 #D97ECC

Accessibility & contrast

On white

5.76
#AB3299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AB3299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3299
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3299#FFFFFF#000000##FFFFFF
##AB32991.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9C
Deuteranopia (green-blind)
#5B6C96
Tritanopia (blue-blind)
#B33C61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab3299;
/* rgb */ color: rgb(171, 50, 153);
/* oklch */ color: oklch(53.5% 0.193 334.6);
Tailwind
colors: {
  custom: {
    50: '#c775b7',
    500: '#ab3299',
    950: '#000000',
  },
}
SCSS
$custom: #ab3299;
$custom-light: #c775b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3299",
  "rgb": {
    "r": 171,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 308.926,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53505,
    "c": 0.19254,
    "h": 334.6
  },
  "luminance": 0.13239
}

Semantic roles & 50–950 ramp

primary
#AB3299
secondary
#77C282
accent
#DE604A
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB3299

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

Preview Lab → · Contrast checker → · Palette generator →

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