#AB48CD#AB48CD

#AB48CD is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.208 H 316.3°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AB48CD
RGBrgb(171, 72, 205)
HSLhsl(285, 57%, 54%)
HSVhsv(285, 65%, 80%)
CMYKcmyk(16.6%, 64.9%, 0%, 19.6%)
CIE-LABlab(49.13, 60.18, -51.28)
CIE-LCHlch(49.13, 79.07, 319.56°)
OKLaboklab(58.76% 0.1507 -0.1439)
OKLCHoklch(58.76% 0.208 316.3)
XYZxyz(30.1297, 17.7016, 59.5754)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48CD #6ACD48
analogous
#6948CD #AB48CD #CD48AD
triadic
#AB48CD #CDAB48 #48CDAB
tetradic
#AB48CD #CD6948 #6ACD48 #48ADCD
square
#AB48CD #CD6948 #6ACD48 #48ADCD
split-complementary
#AB48CD #ADCD48 #48CD69
monochromatic
#632179 #8A2EA9 #AB48CD #C178DA #D7A8E7

Accessibility & contrast

On white

4.63
#AB48CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AB48CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB48CD
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48CD#FFFFFF#000000##FFFFFF
##AB48CD1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106FD1
Deuteranopia (green-blind)
#4978CA
Tritanopia (blue-blind)
#A96184
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab48cd;
/* rgb */ color: rgb(171, 72, 205);
/* oklch */ color: oklch(58.8% 0.208 316.3);
Tailwind
colors: {
  custom: {
    50: '#c782dd',
    500: '#ab48cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab48cd;
$custom-light: #c782dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48cd",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 284.662,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58757,
    "c": 0.20836,
    "h": 316.3
  },
  "luminance": 0.177
}

Semantic roles & 50–950 ramp

primary
#AB48CD
secondary
#ABD59C
accent
#E0476F
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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