#AB48A2#AB48A2

#AB48A2 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.4% C 0.169 H 331.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AB48A2
RGBrgb(171, 72, 162)
HSLhsl(305, 41%, 48%)
HSVhsv(305, 58%, 67%)
CMYKcmyk(0%, 57.9%, 5.3%, 32.9%)
CIE-LABlab(46.85, 52.15, -29.80)
CIE-LCHlch(46.85, 60.07, 330.25°)
OKLaboklab(56.36% 0.1484 -0.0816)
OKLCHoklch(56.36% 0.169 331.2)
XYZxyz(25.6334, 15.9030, 35.8949)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48A2 #48AB51
analogous
#8348AB #AB48A2 #AB4870
triadic
#AB48A2 #A2AB48 #48A2AB
tetradic
#AB48A2 #AB8348 #48AB51 #4870AB
square
#AB48A2 #AB8348 #48AB51 #4870AB
split-complementary
#AB48A2 #70AB48 #48AB83
monochromatic
#552450 #803679 #AB48A2 #C26EBA #D499CF

Accessibility & contrast

On white

5.02
#AB48A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AB48A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48A2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48A2#FFFFFF#000000##FFFFFF
##AB48A21.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4366A5
Deuteranopia (green-blind)
#62749F
Tritanopia (blue-blind)
#B1516E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab48a2;
/* rgb */ color: rgb(171, 72, 162);
/* oklch */ color: oklch(56.4% 0.169 331.2);
Tailwind
colors: {
  custom: {
    50: '#c780be',
    500: '#ab48a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab48a2;
$custom-light: #c780be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48a2",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 162
  },
  "hsl": {
    "h": 305.455,
    "s": 40.741,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56357,
    "c": 0.16937,
    "h": 331.2
  },
  "luminance": 0.15901
}

Semantic roles & 50–950 ramp

primary
#AB48A2
secondary
#8EC093
accent
#D16257
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB48A2

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

Preview Lab → · Contrast checker → · Palette generator →

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