#AB48D8#AB48D8

#AB48D8 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.219 H 313.3°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB48D8
RGBrgb(171, 72, 216)
HSLhsl(281, 65%, 56%)
HSVhsv(281, 67%, 85%)
CMYKcmyk(20.8%, 66.7%, 0%, 15.3%)
CIE-LABlab(49.80, 62.41, -56.51)
CIE-LCHlch(49.80, 84.19, 317.84°)
OKLaboklab(59.45% 0.1502 -0.1592)
OKLCHoklch(59.45% 0.219 313.3)
XYZxyz(31.5045, 18.2515, 66.8157)
Luminance0.1825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48D8 #75D848
analogous
#6348D8 #AB48D8 #D848BD
triadic
#AB48D8 #D8AB48 #48D8AB
tetradic
#AB48D8 #D86348 #75D848 #48BDD8
square
#AB48D8 #D86348 #75D848 #48BDD8
split-complementary
#AB48D8 #BDD848 #48D863
monochromatic
#671D89 #8D28BB #AB48D8 #C27AE3 #D9ADEE

Accessibility & contrast

On white

4.52
#AB48D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#AB48D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48D8
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48D8#FFFFFF#000000##000000
##AB48D81.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DC
Deuteranopia (green-blind)
#3E79D5
Tritanopia (blue-blind)
#A6658A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab48d8;
/* rgb */ color: rgb(171, 72, 216);
/* oklch */ color: oklch(59.5% 0.219 313.3);
Tailwind
colors: {
  custom: {
    50: '#c882e5',
    500: '#ab48d8',
    950: '#000000',
  },
}
SCSS
$custom: #ab48d8;
$custom-light: #c882e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48d8",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 216
  },
  "hsl": {
    "h": 281.25,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59451,
    "c": 0.21884,
    "h": 313.3
  },
  "luminance": 0.18251
}

Semantic roles & 50–950 ramp

primary
#AB48D8
secondary
#B3DBA0
accent
#E84074
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB48D8

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

Preview Lab → · Contrast checker → · Palette generator →

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