#AB48DC#AB48DC

#AB48DC is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.7% C 0.223 H 312.3°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AB48DC
RGBrgb(171, 72, 220)
HSLhsl(280, 68%, 57%)
HSVhsv(280, 67%, 86%)
CMYKcmyk(22.3%, 67.3%, 0%, 13.7%)
CIE-LABlab(50.05, 63.24, -58.38)
CIE-LCHlch(50.05, 86.07, 317.29°)
OKLaboklab(59.71% 0.1499 -0.1647)
OKLCHoklch(59.71% 0.223 312.3)
XYZxyz(32.0279, 18.4608, 69.5724)
Luminance0.1846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48DC #79DC48
analogous
#6148DC #AB48DC #DC48C3
triadic
#AB48DC #DCAB48 #48DCAB
tetradic
#AB48DC #DC6148 #79DC48 #48C3DC
square
#AB48DC #DC6148 #79DC48 #48C3DC
split-complementary
#AB48DC #C3DC48 #48DC61
monochromatic
#681B8E #8E25C2 #AB48DC #C37BE6 #DAAFF0

Accessibility & contrast

On white

4.48
#AB48DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#AB48DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48DC
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48DC#FFFFFF#000000##000000
##AB48DC1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#3A79D9
Tritanopia (blue-blind)
#A5668C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab48dc;
/* rgb */ color: rgb(171, 72, 220);
/* oklch */ color: oklch(59.7% 0.223 312.3);
Tailwind
colors: {
  custom: {
    50: '#c882e8',
    500: '#ab48dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab48dc;
$custom-light: #c882e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48dc",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 220
  },
  "hsl": {
    "h": 280.135,
    "s": 67.89,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59711,
    "c": 0.22267,
    "h": 312.3
  },
  "luminance": 0.1846
}

Semantic roles & 50–950 ramp

primary
#AB48DC
secondary
#B6DEA2
accent
#EB3D77
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB48DC

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

Preview Lab → · Contrast checker → · Palette generator →

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