#AB48BC#AB48BC

#AB48BC is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.7% C 0.192 H 321.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB48BC
RGBrgb(171, 72, 188)
HSLhsl(291, 46%, 51%)
HSVhsv(291, 62%, 74%)
CMYKcmyk(9%, 61.7%, 0%, 26.3%)
CIE-LABlab(48.17, 56.86, -43.00)
CIE-LCHlch(48.17, 71.29, 322.90°)
OKLaboklab(57.75% 0.1507 -0.1197)
OKLCHoklch(57.75% 0.192 321.5)
XYZxyz(28.1881, 16.9249, 49.3493)
Luminance0.1692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48BC #59BC48
analogous
#7148BC #AB48BC #BC4893
triadic
#AB48BC #BCAB48 #48BCAB
tetradic
#AB48BC #BC7148 #59BC48 #4893BC
square
#AB48BC #BC7148 #59BC48 #4893BC
split-complementary
#AB48BC #93BC48 #48BC71
monochromatic
#5B2565 #843592 #AB48BC #C075CC #D4A2DD

Accessibility & contrast

On white

4.79
#AB48BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AB48BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48BC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48BC#FFFFFF#000000##FFFFFF
##AB48BC1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6BC0
Deuteranopia (green-blind)
#5576B9
Tritanopia (blue-blind)
#AD5A7B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab48bc;
/* rgb */ color: rgb(171, 72, 188);
/* oklch */ color: oklch(57.7% 0.192 321.5);
Tailwind
colors: {
  custom: {
    50: '#c781d1',
    500: '#ab48bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab48bc;
$custom-light: #c781d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48bc",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 291.207,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57747,
    "c": 0.19245,
    "h": 321.5
  },
  "luminance": 0.16923
}

Semantic roles & 50–950 ramp

primary
#AB48BC
secondary
#9ECA96
accent
#D65265
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB48BC

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

Preview Lab → · Contrast checker → · Palette generator →

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