#AB48CC#AB48CC

#AB48CC is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.7% C 0.207 H 316.6°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AB48CC
RGBrgb(171, 72, 204)
HSLhsl(285, 56%, 54%)
HSVhsv(285, 65%, 80%)
CMYKcmyk(16.2%, 64.7%, 0%, 20%)
CIE-LABlab(49.07, 59.98, -50.80)
CIE-LCHlch(49.07, 78.61, 319.74°)
OKLaboklab(58.7% 0.1507 -0.1425)
OKLCHoklch(58.7% 0.207 316.6)
XYZxyz(30.0094, 17.6534, 58.9417)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48CC #69CC48
analogous
#6948CC #AB48CC #CC48AB
triadic
#AB48CC #CCAB48 #48CCAB
tetradic
#AB48CC #CC6948 #69CC48 #48ABCC
square
#AB48CC #CC6948 #69CC48 #48ABCC
split-complementary
#AB48CC #ABCC48 #48CC69
monochromatic
#622178 #8A2FA8 #AB48CC #C178D9 #D7A8E7

Accessibility & contrast

On white

4.64
#AB48CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AB48CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48CC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48CC#FFFFFF#000000##FFFFFF
##AB48CC1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136FD0
Deuteranopia (green-blind)
#4A78C9
Tritanopia (blue-blind)
#A96084
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab48cc;
/* rgb */ color: rgb(171, 72, 204);
/* oklch */ color: oklch(58.7% 0.207 316.6);
Tailwind
colors: {
  custom: {
    50: '#c782dc',
    500: '#ab48cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab48cc;
$custom-light: #c782dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48cc",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 285,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58696,
    "c": 0.20742,
    "h": 316.6
  },
  "luminance": 0.17652
}

Semantic roles & 50–950 ramp

primary
#AB48CC
secondary
#AAD49C
accent
#E0486E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB48CC

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

Preview Lab → · Contrast checker → · Palette generator →

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