#AB38CB#AB38CB

#AB38CB is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.226 H 317.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AB38CB
RGBrgb(171, 56, 203)
HSLhsl(287, 59%, 51%)
HSVhsv(287, 72%, 80%)
CMYKcmyk(15.8%, 72.4%, 0%, 20.4%)
CIE-LABlab(46.71, 66.25, -54.02)
CIE-LCHlch(46.71, 85.48, 320.81°)
OKLaboklab(56.98% 0.1676 -0.1518)
OKLCHoklch(56.98% 0.226 317.8)
XYZxyz(28.9867, 15.7994, 58.0110)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38CB #58CB38
analogous
#6138CB #AB38CB #CB38A1
triadic
#AB38CB #CBAB38 #38CBAB
tetradic
#AB38CB #CB6138 #58CB38 #38A1CB
square
#AB38CB #CB6138 #58CB38 #38A1CB
split-complementary
#AB38CB #A1CB38 #38CB61
monochromatic
#5B1C6C #84299D #AB38CB #BF69D8 #D499E4

Accessibility & contrast

On white

5.05
#AB38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#AB38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38CB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38CB#FFFFFF#000000##FFFFFF
##AB38CB1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#3E72C8
Tritanopia (blue-blind)
#AA567F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab38cb;
/* rgb */ color: rgb(171, 56, 203);
/* oklch */ color: oklch(57.0% 0.226 317.8);
Tailwind
colors: {
  custom: {
    50: '#c879db',
    500: '#ab38cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab38cb;
$custom-light: #c879db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38cb",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 286.939,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.2261,
    "h": 317.8
  },
  "luminance": 0.15798
}

Semantic roles & 50–950 ramp

primary
#AB38CB
secondary
#9DD08F
accent
#E24668
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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