#AB48BA#AB48BA

#AB48BA is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.6% C 0.191 H 322.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AB48BA
RGBrgb(171, 72, 186)
HSLhsl(292, 45%, 51%)
HSVhsv(292, 61%, 73%)
CMYKcmyk(8.1%, 61.3%, 0%, 27.1%)
CIE-LABlab(48.06, 56.48, -42.01)
CIE-LCHlch(48.06, 70.39, 323.36°)
OKLaboklab(57.63% 0.1506 -0.1168)
OKLCHoklch(57.63% 0.191 322.2)
XYZxyz(27.9740, 16.8393, 48.2217)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48BA #57BA48
analogous
#7248BA #AB48BA #BA4890
triadic
#AB48BA #BAAB48 #48BAAB
tetradic
#AB48BA #BA7248 #57BA48 #4890BA
square
#AB48BA #BA7248 #57BA48 #4890BA
split-complementary
#AB48BA #90BA48 #48BA72
monochromatic
#5A2562 #83368F #AB48BA #BF74CB #D4A1DC

Accessibility & contrast

On white

4.81
#AB48BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AB48BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48BA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48BA#FFFFFF#000000##FFFFFF
##AB48BA1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306BBD
Deuteranopia (green-blind)
#5676B7
Tritanopia (blue-blind)
#AD597A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab48ba;
/* rgb */ color: rgb(171, 72, 186);
/* oklch */ color: oklch(57.6% 0.191 322.2);
Tailwind
colors: {
  custom: {
    50: '#c781cf',
    500: '#ab48ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab48ba;
$custom-light: #c781cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48ba",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 292.105,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57633,
    "c": 0.1906,
    "h": 322.2
  },
  "luminance": 0.16838
}

Semantic roles & 50–950 ramp

primary
#AB48BA
secondary
#9CC896
accent
#D55364
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB48BA

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

Preview Lab → · Contrast checker → · Palette generator →

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