#AB48D9#AB48D9

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

Color values

HEX#AB48D9
RGBrgb(171, 72, 217)
HSLhsl(281, 66%, 57%)
HSVhsv(281, 67%, 85%)
CMYKcmyk(21.2%, 66.8%, 0%, 14.9%)
CIE-LABlab(49.86, 62.62, -56.98)
CIE-LCHlch(49.86, 84.66, 317.70°)
OKLaboklab(59.52% 0.1501 -0.1606)
OKLCHoklch(59.52% 0.22 313.1)
XYZxyz(31.6341, 18.3033, 67.4987)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48D9 #76D948
analogous
#6348D9 #AB48D9 #D948BE
triadic
#AB48D9 #D9AB48 #48D9AB
tetradic
#AB48D9 #D96348 #76D948 #48BED9
square
#AB48D9 #D96348 #76D948 #48BED9
split-complementary
#AB48D9 #BED948 #48D963
monochromatic
#671D8A #8D27BD #AB48D9 #C27BE4 #DAADEE

Accessibility & contrast

On white

4.51
#AB48D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#AB48D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48D9
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48D9#FFFFFF#000000##000000
##AB48D91.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#3D79D6
Tritanopia (blue-blind)
#A6658B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab48d9;
/* rgb */ color: rgb(171, 72, 217);
/* oklch */ color: oklch(59.5% 0.220 313.1);
Tailwind
colors: {
  custom: {
    50: '#c882e5',
    500: '#ab48d9',
    950: '#000000',
  },
}
SCSS
$custom: #ab48d9;
$custom-light: #c882e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48d9",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 280.966,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59516,
    "c": 0.21979,
    "h": 313.1
  },
  "luminance": 0.18302
}

Semantic roles & 50–950 ramp

primary
#AB48D9
secondary
#B4DCA1
accent
#E93F75
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB48D9

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

Preview Lab → · Contrast checker → · Palette generator →

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