#AB48AA#AB48AA

#AB48AA is a mid, vivid purple. Relative luminance 0.162; OKLCH L 56.8% C 0.176 H 328.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB48AA
RGBrgb(171, 72, 170)
HSLhsl(301, 41%, 48%)
HSVhsv(301, 58%, 67%)
CMYKcmyk(0%, 57.9%, 0.6%, 32.9%)
CIE-LABlab(47.23, 53.55, -33.93)
CIE-LCHlch(47.23, 63.39, 327.64°)
OKLaboklab(56.76% 0.1494 -0.0934)
OKLCHoklch(56.76% 0.176 328)
XYZxyz(26.3673, 16.1966, 39.7599)
Luminance0.1620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48AA #48AB49
analogous
#7A48AB #AB48AA #AB4878
triadic
#AB48AA #AAAB48 #48AAAB
tetradic
#AB48AA #AB7A48 #48AB49 #4878AB
square
#AB48AA #AB7A48 #48AB49 #4878AB
split-complementary
#AB48AA #78AB48 #48AB7A
monochromatic
#552454 #80367F #AB48AA #C26EC1 #D499D4

Accessibility & contrast

On white

4.95
#AB48AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AB48AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48AA
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48AA#FFFFFF#000000##FFFFFF
##AB48AA1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E68AD
Deuteranopia (green-blind)
#5F75A7
Tritanopia (blue-blind)
#B05472
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab48aa;
/* rgb */ color: rgb(171, 72, 170);
/* oklch */ color: oklch(56.8% 0.176 328.0);
Tailwind
colors: {
  custom: {
    50: '#c781c3',
    500: '#ab48aa',
    950: '#000000',
  },
}
SCSS
$custom: #ab48aa;
$custom-light: #c781c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48aa",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 170
  },
  "hsl": {
    "h": 300.606,
    "s": 40.741,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56763,
    "c": 0.17624,
    "h": 328
  },
  "luminance": 0.16195
}

Semantic roles & 50–950 ramp

primary
#AB48AA
secondary
#8EC08F
accent
#D15857
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB48AA

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

Preview Lab → · Contrast checker → · Palette generator →

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