#AB38CA#AB38CA

#AB38CA is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.9% C 0.225 H 318.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AB38CA
RGBrgb(171, 56, 202)
HSLhsl(287, 58%, 51%)
HSVhsv(287, 72%, 79%)
CMYKcmyk(15.3%, 72.3%, 0%, 20.8%)
CIE-LABlab(46.65, 66.06, -53.54)
CIE-LCHlch(46.65, 85.03, 320.98°)
OKLaboklab(56.92% 0.1677 -0.1504)
OKLCHoklch(56.92% 0.225 318.1)
XYZxyz(28.8679, 15.7518, 57.3855)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38CA #57CA38
analogous
#6238CA #AB38CA #CA38A0
triadic
#AB38CA #CAAB38 #38CAAB
tetradic
#AB38CA #CA6238 #57CA38 #38A0CA
square
#AB38CA #CA6238 #57CA38 #38A0CA
split-complementary
#AB38CA #A0CA38 #38CA62
monochromatic
#5A1D6B #83299B #AB38CA #BF68D7 #D499E4

Accessibility & contrast

On white

5.06
#AB38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AB38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38CA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38CA#FFFFFF#000000##FFFFFF
##AB38CA1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#3F72C7
Tritanopia (blue-blind)
#AA567E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab38ca;
/* rgb */ color: rgb(171, 56, 202);
/* oklch */ color: oklch(56.9% 0.225 318.1);
Tailwind
colors: {
  custom: {
    50: '#c879db',
    500: '#ab38ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab38ca;
$custom-light: #c879db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38ca",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 287.26,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56919,
    "c": 0.22523,
    "h": 318.1
  },
  "luminance": 0.15751
}

Semantic roles & 50–950 ramp

primary
#AB38CA
secondary
#9CCF8E
accent
#E14767
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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