#AB48B3#AB48B3

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

Color values

HEX#AB48B3
RGBrgb(171, 72, 179)
HSLhsl(296, 43%, 49%)
HSVhsv(296, 60%, 70%)
CMYKcmyk(4.5%, 59.8%, 0%, 29.8%)
CIE-LABlab(47.69, 55.18, -38.50)
CIE-LCHlch(47.69, 67.28, 325.09°)
OKLaboklab(57.24% 0.1502 -0.1066)
OKLCHoklch(57.24% 0.184 324.6)
XYZxyz(27.2480, 16.5489, 44.3981)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48B3 #50B348
analogous
#7648B3 #AB48B3 #B34886
triadic
#AB48B3 #B3AB48 #48B3AB
tetradic
#AB48B3 #B37648 #50B348 #4886B3
square
#AB48B3 #B37648 #50B348 #4886B3
split-complementary
#AB48B3 #86B348 #48B376
monochromatic
#58255C #813687 #AB48B3 #C072C6 #D39ED8

Accessibility & contrast

On white

4.87
#AB48B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AB48B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48B3
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48B3#FFFFFF#000000##FFFFFF
##AB48B31.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3769B6
Deuteranopia (green-blind)
#5A75B0
Tritanopia (blue-blind)
#AE5777
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab48b3;
/* rgb */ color: rgb(171, 72, 179);
/* oklch */ color: oklch(57.2% 0.184 324.6);
Tailwind
colors: {
  custom: {
    50: '#c781ca',
    500: '#ab48b3',
    950: '#000000',
  },
}
SCSS
$custom: #ab48b3;
$custom-light: #c781ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48b3",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 179
  },
  "hsl": {
    "h": 295.514,
    "s": 42.629,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57243,
    "c": 0.18422,
    "h": 324.6
  },
  "luminance": 0.16547
}

Semantic roles & 50–950 ramp

primary
#AB48B3
secondary
#96C492
accent
#D2555F
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB48B3

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

Preview Lab → · Contrast checker → · Palette generator →

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