#AB38C0#AB38C0

#AB38C0 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.3% C 0.217 H 321.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AB38C0
RGBrgb(171, 56, 192)
HSLhsl(291, 55%, 49%)
HSVhsv(291, 71%, 75%)
CMYKcmyk(10.9%, 70.8%, 0%, 24.7%)
CIE-LABlab(46.03, 64.20, -48.72)
CIE-LCHlch(46.03, 80.60, 322.81°)
OKLaboklab(56.29% 0.1684 -0.1363)
OKLCHoklch(56.29% 0.217 321)
XYZxyz(27.7221, 15.2935, 51.3507)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38C0 #4DC038
analogous
#6738C0 #AB38C0 #C03891
triadic
#AB38C0 #C0AB38 #38C0AB
tetradic
#AB38C0 #C06738 #4DC038 #3891C0
square
#AB38C0 #C06738 #4DC038 #3891C0
split-complementary
#AB38C0 #91C038 #38C067
monochromatic
#571C61 #812A91 #AB38C0 #C164D2 #D493DF

Accessibility & contrast

On white

5.17
#AB38C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AB38C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38C0
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38C0#FFFFFF#000000##FFFFFF
##AB38C01.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C4
Deuteranopia (green-blind)
#4771BD
Tritanopia (blue-blind)
#AC5178
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab38c0;
/* rgb */ color: rgb(171, 56, 192);
/* oklch */ color: oklch(56.3% 0.217 321.0);
Tailwind
colors: {
  custom: {
    50: '#c879d4',
    500: '#ab38c0',
    950: '#000000',
  },
}
SCSS
$custom: #ab38c0;
$custom-light: #c879d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38c0",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 290.735,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56285,
    "c": 0.21664,
    "h": 321
  },
  "luminance": 0.15292
}

Semantic roles & 50–950 ramp

primary
#AB38C0
secondary
#93CB89
accent
#DE4A61
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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