#AB48B2#AB48B2

#AB48B2 is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.2% C 0.183 H 325.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AB48B2
RGBrgb(171, 72, 178)
HSLhsl(296, 42%, 49%)
HSVhsv(296, 60%, 70%)
CMYKcmyk(3.9%, 59.6%, 0%, 30.2%)
CIE-LABlab(47.63, 54.99, -38.00)
CIE-LCHlch(47.63, 66.84, 325.36°)
OKLaboklab(57.19% 0.1502 -0.1052)
OKLCHoklch(57.19% 0.183 325)
XYZxyz(27.1472, 16.5086, 43.8674)
Luminance0.1651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48B2 #4FB248
analogous
#7648B2 #AB48B2 #B24884
triadic
#AB48B2 #B2AB48 #48B2AB
tetradic
#AB48B2 #B27648 #4FB248 #4884B2
square
#AB48B2 #B27648 #4FB248 #4884B2
split-complementary
#AB48B2 #84B248 #48B276
monochromatic
#57255B #813686 #AB48B2 #C071C6 #D49DD7

Accessibility & contrast

On white

4.88
#AB48B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AB48B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48B2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48B2#FFFFFF#000000##FFFFFF
##AB48B21.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3869B5
Deuteranopia (green-blind)
#5B75AF
Tritanopia (blue-blind)
#AF5676
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab48b2;
/* rgb */ color: rgb(171, 72, 178);
/* oklch */ color: oklch(57.2% 0.183 325.0);
Tailwind
colors: {
  custom: {
    50: '#c781c9',
    500: '#ab48b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab48b2;
$custom-light: #c781c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48b2",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 296.038,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57189,
    "c": 0.18332,
    "h": 325
  },
  "luminance": 0.16507
}

Semantic roles & 50–950 ramp

primary
#AB48B2
secondary
#95C492
accent
#D2565E
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB48B2

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

Preview Lab → · Contrast checker → · Palette generator →

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