#AB48BD#AB48BD

#AB48BD is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.8% C 0.193 H 321.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB48BD
RGBrgb(171, 72, 189)
HSLhsl(291, 47%, 51%)
HSVhsv(291, 62%, 74%)
CMYKcmyk(9.5%, 61.9%, 0%, 25.9%)
CIE-LABlab(48.22, 57.05, -43.49)
CIE-LCHlch(48.22, 71.74, 322.68°)
OKLaboklab(57.8% 0.1507 -0.1211)
OKLCHoklch(57.8% 0.193 321.2)
XYZxyz(28.2962, 16.9682, 49.9190)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48BD #5ABD48
analogous
#7048BD #AB48BD #BD4894
triadic
#AB48BD #BDAB48 #48BDAB
tetradic
#AB48BD #BD7048 #5ABD48 #4894BD
square
#AB48BD #BD7048 #5ABD48 #4894BD
split-complementary
#AB48BD #94BD48 #48BD70
monochromatic
#5C2566 #843593 #AB48BD #C075CD #D4A2DD

Accessibility & contrast

On white

4.78
#AB48BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AB48BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48BD
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48BD#FFFFFF#000000##FFFFFF
##AB48BD1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6BC1
Deuteranopia (green-blind)
#5476BA
Tritanopia (blue-blind)
#AD5B7C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab48bd;
/* rgb */ color: rgb(171, 72, 189);
/* oklch */ color: oklch(57.8% 0.193 321.2);
Tailwind
colors: {
  custom: {
    50: '#c781d1',
    500: '#ab48bd',
    950: '#000000',
  },
}
SCSS
$custom: #ab48bd;
$custom-light: #c781d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48bd",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 189
  },
  "hsl": {
    "h": 290.769,
    "s": 46.988,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57804,
    "c": 0.19337,
    "h": 321.2
  },
  "luminance": 0.16967
}

Semantic roles & 50–950 ramp

primary
#AB48BD
secondary
#9FCA97
accent
#D75166
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB48BD

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

Preview Lab → · Contrast checker → · Palette generator →

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