#AB48D2#AB48D2

#AB48D2 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.213 H 314.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AB48D2
RGBrgb(171, 72, 210)
HSLhsl(283, 61%, 55%)
HSVhsv(283, 66%, 82%)
CMYKcmyk(18.6%, 65.7%, 0%, 17.6%)
CIE-LABlab(49.43, 61.19, -53.67)
CIE-LCHlch(49.43, 81.39, 318.74°)
OKLaboklab(59.07% 0.1505 -0.1509)
OKLCHoklch(59.07% 0.213 314.9)
XYZxyz(30.7429, 17.9468, 62.8049)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48D2 #6FD248
analogous
#6648D2 #AB48D2 #D248B4
triadic
#AB48D2 #D2AB48 #48D2AB
tetradic
#AB48D2 #D26648 #6FD248 #48B4D2
square
#AB48D2 #D26648 #6FD248 #48B4D2
split-complementary
#AB48D2 #B4D248 #48D266
monochromatic
#652080 #8B2CB1 #AB48D2 #C279DE #D8AAEA

Accessibility & contrast

On white

4.58
#AB48D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AB48D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48D2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48D2#FFFFFF#000000##000000
##AB48D21.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D6
Deuteranopia (green-blind)
#4478CF
Tritanopia (blue-blind)
#A86387
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab48d2;
/* rgb */ color: rgb(171, 72, 210);
/* oklch */ color: oklch(59.1% 0.213 314.9);
Tailwind
colors: {
  custom: {
    50: '#c882e0',
    500: '#ab48d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab48d2;
$custom-light: #c882e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48d2",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 210
  },
  "hsl": {
    "h": 283.043,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59069,
    "c": 0.21312,
    "h": 314.9
  },
  "luminance": 0.17946
}

Semantic roles & 50–950 ramp

primary
#AB48D2
secondary
#AED89E
accent
#E44471
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB48D2

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

Preview Lab → · Contrast checker → · Palette generator →

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