#AB38D2#AB38D2

#AB38D2 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.232 H 315.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AB38D2
RGBrgb(171, 56, 210)
HSLhsl(285, 63%, 52%)
HSVhsv(285, 73%, 82%)
CMYKcmyk(18.6%, 73.3%, 0%, 17.6%)
CIE-LABlab(47.16, 67.59, -57.32)
CIE-LCHlch(47.16, 88.63, 319.70°)
OKLaboklab(57.45% 0.1668 -0.1615)
OKLCHoklch(57.45% 0.232 315.9)
XYZxyz(29.8398, 16.1406, 62.5039)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38D2 #5FD238
analogous
#5E38D2 #AB38D2 #D238AC
triadic
#AB38D2 #D2AB38 #38D2AB
tetradic
#AB38D2 #D25E38 #5FD238 #38ACD2
square
#AB38D2 #D25E38 #5FD238 #38ACD2
split-complementary
#AB38D2 #ACD238 #38D25E
monochromatic
#5E1A75 #8626A7 #AB38D2 #C06ADD #D59CE9

Accessibility & contrast

On white

4.97
#AB38D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AB38D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38D2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38D2#FFFFFF#000000##FFFFFF
##AB38D21.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#3673CF
Tritanopia (blue-blind)
#A85983
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab38d2;
/* rgb */ color: rgb(171, 56, 210);
/* oklch */ color: oklch(57.4% 0.232 315.9);
Tailwind
colors: {
  custom: {
    50: '#c87ae1',
    500: '#ab38d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab38d2;
$custom-light: #c87ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38d2",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 284.805,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57445,
    "c": 0.23218,
    "h": 315.9
  },
  "luminance": 0.16139
}

Semantic roles & 50–950 ramp

primary
#AB38D2
secondary
#A2D591
accent
#E6426B
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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