#AB38BD#AB38BD

#AB38BD is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.1% C 0.214 H 321.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AB38BD
RGBrgb(171, 56, 189)
HSLhsl(292, 54%, 48%)
HSVhsv(292, 70%, 74%)
CMYKcmyk(9.5%, 70.4%, 0%, 25.9%)
CIE-LABlab(45.86, 63.65, -47.26)
CIE-LCHlch(45.86, 79.28, 323.41°)
OKLaboklab(56.1% 0.1686 -0.132)
OKLCHoklch(56.1% 0.214 321.9)
XYZxyz(27.3931, 15.1619, 49.6179)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38BD #4ABD38
analogous
#6938BD #AB38BD #BD388C
triadic
#AB38BD #BDAB38 #38BDAB
tetradic
#AB38BD #BD6938 #4ABD38 #388CBD
square
#AB38BD #BD6938 #4ABD38 #388CBD
split-complementary
#AB38BD #8CBD38 #38BD69
monochromatic
#561C5F #802A8E #AB38BD #C162D0 #D491DE

Accessibility & contrast

On white

5.21
#AB38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AB38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38BD
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38BD#FFFFFF#000000##FFFFFF
##AB38BD1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C1
Deuteranopia (green-blind)
#4A71BA
Tritanopia (blue-blind)
#AD5077
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab38bd;
/* rgb */ color: rgb(171, 56, 189);
/* oklch */ color: oklch(56.1% 0.214 321.9);
Tailwind
colors: {
  custom: {
    50: '#c879d1',
    500: '#ab38bd',
    950: '#000000',
  },
}
SCSS
$custom: #ab38bd;
$custom-light: #c879d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38bd",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 291.88,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.561,
    "c": 0.21409,
    "h": 321.9
  },
  "luminance": 0.1516
}

Semantic roles & 50–950 ramp

primary
#AB38BD
secondary
#90C987
accent
#DE4A5E
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AB38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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