#AB38C4#AB38C4

#AB38C4 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.220 H 319.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AB38C4
RGBrgb(171, 56, 196)
HSLhsl(289, 56%, 49%)
HSVhsv(289, 71%, 77%)
CMYKcmyk(12.8%, 71.4%, 0%, 23.1%)
CIE-LABlab(46.28, 64.94, -50.66)
CIE-LCHlch(46.28, 82.36, 322.04°)
OKLaboklab(56.54% 0.1682 -0.1419)
OKLCHoklch(56.54% 0.22 319.8)
XYZxyz(28.1713, 15.4732, 53.7166)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38C4 #51C438
analogous
#6538C4 #AB38C4 #C43897
triadic
#AB38C4 #C4AB38 #38C4AB
tetradic
#AB38C4 #C46538 #51C438 #3897C4
square
#AB38C4 #C46538 #51C438 #3897C4
split-complementary
#AB38C4 #97C438 #38C465
monochromatic
#581D65 #812A94 #AB38C4 #C066D3 #D396E1

Accessibility & contrast

On white

5.13
#AB38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AB38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38C4
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38C4#FFFFFF#000000##FFFFFF
##AB38C41.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#4472C1
Tritanopia (blue-blind)
#AB537B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab38c4;
/* rgb */ color: rgb(171, 56, 196);
/* oklch */ color: oklch(56.5% 0.220 319.8);
Tailwind
colors: {
  custom: {
    50: '#c879d6',
    500: '#ab38c4',
    950: '#000000',
  },
}
SCSS
$custom: #ab38c4;
$custom-light: #c879d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38c4",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 289.286,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56535,
    "c": 0.22006,
    "h": 319.8
  },
  "luminance": 0.15472
}

Semantic roles & 50–950 ramp

primary
#AB38C4
secondary
#97CC8C
accent
#DF4964
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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