#AB48CA#AB48CA

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

Color values

HEX#AB48CA
RGBrgb(171, 72, 202)
HSLhsl(286, 55%, 54%)
HSVhsv(286, 64%, 79%)
CMYKcmyk(15.3%, 64.4%, 0%, 20.8%)
CIE-LABlab(48.96, 59.58, -49.84)
CIE-LCHlch(48.96, 77.68, 320.09°)
OKLaboklab(58.57% 0.1508 -0.1397)
OKLCHoklch(58.57% 0.206 317.2)
XYZxyz(29.7711, 17.5581, 57.6865)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48CA #67CA48
analogous
#6A48CA #AB48CA #CA48A8
triadic
#AB48CA #CAAB48 #48CAAB
tetradic
#AB48CA #CA6A48 #67CA48 #48A8CA
square
#AB48CA #CA6A48 #67CA48 #48A8CA
split-complementary
#AB48CA #A8CA48 #48CA6A
monochromatic
#622276 #8930A5 #AB48CA #C177D8 #D7A7E5

Accessibility & contrast

On white

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

On black

4.51
#AB48CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AB48CA#FFFFFF#000000##FFFFFF
##AB48CA1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186ECE
Deuteranopia (green-blind)
#4B77C7
Tritanopia (blue-blind)
#AA5F83
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab48ca;
/* rgb */ color: rgb(171, 72, 202);
/* oklch */ color: oklch(58.6% 0.206 317.2);
Tailwind
colors: {
  custom: {
    50: '#c782db',
    500: '#ab48ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab48ca;
$custom-light: #c782db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48ca",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 285.692,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58573,
    "c": 0.20553,
    "h": 317.2
  },
  "luminance": 0.17557
}

Semantic roles & 50–950 ramp

primary
#AB48CA
secondary
#A8D39B
accent
#DE496D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB48CA

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

Preview Lab → · Contrast checker → · Palette generator →

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