#AB38C5#AB38C5

#AB38C5 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.221 H 319.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AB38C5
RGBrgb(171, 56, 197)
HSLhsl(289, 56%, 50%)
HSVhsv(289, 72%, 77%)
CMYKcmyk(13.2%, 71.6%, 0%, 22.7%)
CIE-LABlab(46.34, 65.13, -51.14)
CIE-LCHlch(46.34, 82.81, 321.86°)
OKLaboklab(56.6% 0.1681 -0.1434)
OKLCHoklch(56.6% 0.221 319.5)
XYZxyz(28.2855, 15.5189, 54.3180)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38C5 #52C538
analogous
#6538C5 #AB38C5 #C53899
triadic
#AB38C5 #C5AB38 #38C5AB
tetradic
#AB38C5 #C56538 #52C538 #3899C5
square
#AB38C5 #C56538 #52C538 #3899C5
split-complementary
#AB38C5 #99C538 #38C565
monochromatic
#581D66 #822A95 #AB38C5 #C067D4 #D396E1

Accessibility & contrast

On white

5.12
#AB38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AB38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38C5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38C5#FFFFFF#000000##FFFFFF
##AB38C51.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#4372C2
Tritanopia (blue-blind)
#AB537B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab38c5;
/* rgb */ color: rgb(171, 56, 197);
/* oklch */ color: oklch(56.6% 0.221 319.5);
Tailwind
colors: {
  custom: {
    50: '#c879d7',
    500: '#ab38c5',
    950: '#000000',
  },
}
SCSS
$custom: #ab38c5;
$custom-light: #c879d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38c5",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 288.936,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56599,
    "c": 0.22092,
    "h": 319.5
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

primary
#AB38C5
secondary
#98CD8C
accent
#DF4964
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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