#AB48CF#AB48CF

#AB48CF is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 58.9% C 0.210 H 315.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AB48CF
RGBrgb(171, 72, 207)
HSLhsl(284, 58%, 55%)
HSVhsv(284, 65%, 81%)
CMYKcmyk(17.4%, 65.2%, 0%, 18.8%)
CIE-LABlab(49.25, 60.58, -52.24)
CIE-LCHlch(49.25, 80.00, 319.23°)
OKLaboklab(58.88% 0.1506 -0.1467)
OKLCHoklch(58.88% 0.21 315.8)
XYZxyz(30.3727, 17.7987, 60.8550)
Luminance0.1780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48CF #6CCF48
analogous
#6848CF #AB48CF #CF48B0
triadic
#AB48CF #CFAB48 #48CFAB
tetradic
#AB48CF #CF6848 #6CCF48 #48B0CF
square
#AB48CF #CF6848 #6CCF48 #48B0CF
split-complementary
#AB48CF #B0CF48 #48CF68
monochromatic
#64217C #8B2DAD #AB48CF #C178DC #D8A9E8

Accessibility & contrast

On white

4.61
#AB48CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AB48CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48CF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48CF#FFFFFF#000000##FFFFFF
##AB48CF1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086FD3
Deuteranopia (green-blind)
#4778CC
Tritanopia (blue-blind)
#A96185
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab48cf;
/* rgb */ color: rgb(171, 72, 207);
/* oklch */ color: oklch(58.9% 0.210 315.8);
Tailwind
colors: {
  custom: {
    50: '#c882de',
    500: '#ab48cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab48cf;
$custom-light: #c882de;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48cf",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 207
  },
  "hsl": {
    "h": 284,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58881,
    "c": 0.21026,
    "h": 315.8
  },
  "luminance": 0.17798
}

Semantic roles & 50–950 ramp

primary
#AB48CF
secondary
#ACD69D
accent
#E24670
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB48CF

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

Preview Lab → · Contrast checker → · Palette generator →

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