#AB30AC#AB30AC

#AB30AC is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.209 H 327.6°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AB30AC
RGBrgb(171, 48, 172)
HSLhsl(300, 56%, 43%)
HSVhsv(300, 72%, 67%)
CMYKcmyk(0.6%, 72.1%, 0%, 32.5%)
CIE-LABlab(43.88, 63.54, -40.42)
CIE-LCHlch(43.88, 75.31, 327.54°)
OKLaboklab(54.37% 0.1768 -0.112)
OKLCHoklch(54.37% 0.209 327.6)
XYZxyz(25.2976, 13.7522, 40.3437)
Luminance0.1375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB30AC #31AC30
analogous
#6D30AC #AB30AC #AC306F
triadic
#AB30AC #ACAB30 #30ACAB
tetradic
#AB30AC #AC6D30 #31AC30 #306FAC
square
#AB30AC #AC6D30 #31AC30 #306FAC
split-complementary
#AB30AC #6FAC30 #30AC6D
monochromatic
#4C154C #7B237C #AB30AC #CC4CCD #DA7CDA

Accessibility & contrast

On white

5.60
#AB30AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AB30AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB30AC
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB30AC#FFFFFF#000000##FFFFFF
##AB30AC1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175EAF
Deuteranopia (green-blind)
#506DA9
Tritanopia (blue-blind)
#B0436B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab30ac;
/* rgb */ color: rgb(171, 48, 172);
/* oklch */ color: oklch(54.4% 0.209 327.6);
Tailwind
colors: {
  custom: {
    50: '#c875c5',
    500: '#ab30ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab30ac;
$custom-light: #c875c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab30ac",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 299.516,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54369,
    "c": 0.2093,
    "h": 327.6
  },
  "luminance": 0.1375
}

Semantic roles & 50–950 ramp

primary
#AB30AC
secondary
#75C375
accent
#E04849
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB30AC

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

Preview Lab → · Contrast checker → · Palette generator →

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