#AB48C2#AB48C2

#AB48C2 is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.1% C 0.198 H 319.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB48C2
RGBrgb(171, 72, 194)
HSLhsl(289, 50%, 52%)
HSVhsv(289, 63%, 76%)
CMYKcmyk(11.9%, 62.9%, 0%, 23.9%)
CIE-LABlab(48.50, 58.01, -45.95)
CIE-LCHlch(48.50, 74.01, 321.62°)
OKLaboklab(58.09% 0.1508 -0.1283)
OKLCHoklch(58.09% 0.198 319.6)
XYZxyz(28.8483, 17.1890, 52.8267)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48C2 #5FC248
analogous
#6E48C2 #AB48C2 #C2489C
triadic
#AB48C2 #C2AB48 #48C2AB
tetradic
#AB48C2 #C26E48 #5FC248 #489CC2
square
#AB48C2 #C26E48 #5FC248 #489CC2
split-complementary
#AB48C2 #9CC248 #48C26E
monochromatic
#5E246C #86339A #AB48C2 #C076D1 #D5A4E1

Accessibility & contrast

On white

4.73
#AB48C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AB48C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48C2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48C2#FFFFFF#000000##FFFFFF
##AB48C21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266CC6
Deuteranopia (green-blind)
#5177BF
Tritanopia (blue-blind)
#AB5C7F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab48c2;
/* rgb */ color: rgb(171, 72, 194);
/* oklch */ color: oklch(58.1% 0.198 319.6);
Tailwind
colors: {
  custom: {
    50: '#c781d5',
    500: '#ab48c2',
    950: '#000000',
  },
}
SCSS
$custom: #ab48c2;
$custom-light: #c781d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48c2",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 288.689,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58094,
    "c": 0.19801,
    "h": 319.6
  },
  "luminance": 0.17188
}

Semantic roles & 50–950 ramp

primary
#AB48C2
secondary
#A2CE98
accent
#DA4E69
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB48C2

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

Preview Lab → · Contrast checker → · Palette generator →

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