#AB48CB#AB48CB

#AB48CB is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.6% C 0.206 H 316.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB48CB
RGBrgb(171, 72, 203)
HSLhsl(285, 56%, 54%)
HSVhsv(285, 65%, 80%)
CMYKcmyk(15.8%, 64.5%, 0%, 20.4%)
CIE-LABlab(49.01, 59.78, -50.32)
CIE-LCHlch(49.01, 78.14, 319.91°)
OKLaboklab(58.63% 0.1508 -0.1411)
OKLCHoklch(58.63% 0.206 316.9)
XYZxyz(29.8899, 17.6056, 58.3121)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48CB #68CB48
analogous
#6A48CB #AB48CB #CB48A9
triadic
#AB48CB #CBAB48 #48CBAB
tetradic
#AB48CB #CB6A48 #68CB48 #48A9CB
square
#AB48CB #CB6A48 #68CB48 #48A9CB
split-complementary
#AB48CB #A9CB48 #48CB6A
monochromatic
#622277 #892FA6 #AB48CB #C178D9 #D7A7E6

Accessibility & contrast

On white

4.65
#AB48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AB48CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48CB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48CB#FFFFFF#000000##FFFFFF
##AB48CB1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166ECF
Deuteranopia (green-blind)
#4A77C8
Tritanopia (blue-blind)
#AA6083
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab48cb;
/* rgb */ color: rgb(171, 72, 203);
/* oklch */ color: oklch(58.6% 0.206 316.9);
Tailwind
colors: {
  custom: {
    50: '#c782db',
    500: '#ab48cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab48cb;
$custom-light: #c782db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48cb",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 285.344,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58634,
    "c": 0.20648,
    "h": 316.9
  },
  "luminance": 0.17604
}

Semantic roles & 50–950 ramp

primary
#AB48CB
secondary
#A9D39B
accent
#DF496D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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