#AB38C2#AB38C2

#AB38C2 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.4% C 0.218 H 320.4°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AB38C2
RGBrgb(171, 56, 194)
HSLhsl(290, 55%, 49%)
HSVhsv(290, 71%, 76%)
CMYKcmyk(11.9%, 71.1%, 0%, 23.9%)
CIE-LABlab(46.15, 64.57, -49.69)
CIE-LCHlch(46.15, 81.48, 322.42°)
OKLaboklab(56.41% 0.1683 -0.1391)
OKLCHoklch(56.41% 0.218 320.4)
XYZxyz(27.9452, 15.3827, 52.5257)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38C2 #4FC238
analogous
#6638C2 #AB38C2 #C23894
triadic
#AB38C2 #C2AB38 #38C2AB
tetradic
#AB38C2 #C26638 #4FC238 #3894C2
square
#AB38C2 #C26638 #4FC238 #3894C2
split-complementary
#AB38C2 #94C238 #38C266
monochromatic
#571D63 #812A93 #AB38C2 #C065D2 #D494E0

Accessibility & contrast

On white

5.15
#AB38C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AB38C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38C2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38C2#FFFFFF#000000##FFFFFF
##AB38C21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#4671BF
Tritanopia (blue-blind)
#AC527A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab38c2;
/* rgb */ color: rgb(171, 56, 194);
/* oklch */ color: oklch(56.4% 0.218 320.4);
Tailwind
colors: {
  custom: {
    50: '#c879d5',
    500: '#ab38c2',
    950: '#000000',
  },
}
SCSS
$custom: #ab38c2;
$custom-light: #c879d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38c2",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 290,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5641,
    "c": 0.21835,
    "h": 320.4
  },
  "luminance": 0.15381
}

Semantic roles & 50–950 ramp

primary
#AB38C2
secondary
#95CB8A
accent
#DF4962
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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