#AB38C3#AB38C3

#AB38C3 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.219 H 320.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AB38C3
RGBrgb(171, 56, 195)
HSLhsl(290, 55%, 49%)
HSVhsv(290, 71%, 76%)
CMYKcmyk(12.3%, 71.3%, 0%, 23.5%)
CIE-LABlab(46.21, 64.76, -50.18)
CIE-LCHlch(46.21, 81.92, 322.23°)
OKLaboklab(56.47% 0.1682 -0.1405)
OKLCHoklch(56.47% 0.219 320.1)
XYZxyz(28.0579, 15.4278, 53.1191)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38C3 #50C338
analogous
#6638C3 #AB38C3 #C33896
triadic
#AB38C3 #C3AB38 #38C3AB
tetradic
#AB38C3 #C36638 #50C338 #3896C3
square
#AB38C3 #C36638 #50C338 #3896C3
split-complementary
#AB38C3 #96C338 #38C366
monochromatic
#581D64 #812A93 #AB38C3 #C065D3 #D395E1

Accessibility & contrast

On white

5.14
#AB38C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB38C3
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38C3#FFFFFF#000000##FFFFFF
##AB38C31.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C7
Deuteranopia (green-blind)
#4571C0
Tritanopia (blue-blind)
#AC527A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab38c3;
/* rgb */ color: rgb(171, 56, 195);
/* oklch */ color: oklch(56.5% 0.219 320.1);
Tailwind
colors: {
  custom: {
    50: '#c879d6',
    500: '#ab38c3',
    950: '#000000',
  },
}
SCSS
$custom: #ab38c3;
$custom-light: #c879d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38c3",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 289.64,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56472,
    "c": 0.21921,
    "h": 320.1
  },
  "luminance": 0.15426
}

Semantic roles & 50–950 ramp

primary
#AB38C3
secondary
#96CC8B
accent
#DF4963
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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