#AB38D1#AB38D1

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

Color values

HEX#AB38D1
RGBrgb(171, 56, 209)
HSLhsl(285, 62%, 52%)
HSVhsv(285, 73%, 82%)
CMYKcmyk(18.2%, 73.2%, 0%, 18%)
CIE-LABlab(47.09, 67.40, -56.85)
CIE-LCHlch(47.09, 88.18, 319.85°)
OKLaboklab(57.38% 0.1669 -0.1601)
OKLCHoklch(57.38% 0.231 316.2)
XYZxyz(29.7156, 16.0909, 61.8498)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38D1 #5ED138
analogous
#5F38D1 #AB38D1 #D138AB
triadic
#AB38D1 #D1AB38 #38D1AB
tetradic
#AB38D1 #D15F38 #5ED138 #38ABD1
square
#AB38D1 #D15F38 #5ED138 #38ABD1
split-complementary
#AB38D1 #ABD138 #38D15F
monochromatic
#5E1B74 #8626A6 #AB38D1 #C06ADC #D59BE8

Accessibility & contrast

On white

4.98
#AB38D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AB38D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38D1
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38D1#FFFFFF#000000##FFFFFF
##AB38D11.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D5
Deuteranopia (green-blind)
#3773CE
Tritanopia (blue-blind)
#A95982
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab38d1;
/* rgb */ color: rgb(171, 56, 209);
/* oklch */ color: oklch(57.4% 0.231 316.2);
Tailwind
colors: {
  custom: {
    50: '#c87ae0',
    500: '#ab38d1',
    950: '#000000',
  },
}
SCSS
$custom: #ab38d1;
$custom-light: #c87ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38d1",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 285.098,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57378,
    "c": 0.23131,
    "h": 316.2
  },
  "luminance": 0.1609
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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