#AB48DB#AB48DB

#AB48DB is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.6% C 0.222 H 312.6°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AB48DB
RGBrgb(171, 72, 219)
HSLhsl(280, 67%, 57%)
HSVhsv(280, 67%, 86%)
CMYKcmyk(21.9%, 67.1%, 0%, 14.1%)
CIE-LABlab(49.99, 63.03, -57.91)
CIE-LCHlch(49.99, 85.60, 317.42°)
OKLaboklab(59.65% 0.15 -0.1633)
OKLCHoklch(59.65% 0.222 312.6)
XYZxyz(31.8958, 18.4080, 68.8770)
Luminance0.1841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48DB #78DB48
analogous
#6248DB #AB48DB #DB48C2
triadic
#AB48DB #DBAB48 #48DBAB
tetradic
#AB48DB #DB6248 #78DB48 #48C2DB
square
#AB48DB #DB6248 #78DB48 #48C2DB
split-complementary
#AB48DB #C2DB48 #48DB62
monochromatic
#681C8D #8E26C0 #AB48DB #C27BE5 #DAAEEF

Accessibility & contrast

On white

4.49
#AB48DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#AB48DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48DB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48DB#FFFFFF#000000##000000
##AB48DB1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#3B79D8
Tritanopia (blue-blind)
#A6668C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab48db;
/* rgb */ color: rgb(171, 72, 219);
/* oklch */ color: oklch(59.6% 0.222 312.6);
Tailwind
colors: {
  custom: {
    50: '#c882e7',
    500: '#ab48db',
    950: '#000000',
  },
}
SCSS
$custom: #ab48db;
$custom-light: #c882e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48db",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 280.408,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59646,
    "c": 0.22171,
    "h": 312.6
  },
  "luminance": 0.18407
}

Semantic roles & 50–950 ramp

primary
#AB48DB
secondary
#B5DDA2
accent
#EA3E76
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB48DB

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

Preview Lab → · Contrast checker → · Palette generator →

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