#AB38CD#AB38CD

#AB38CD is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.1% C 0.228 H 317.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AB38CD
RGBrgb(171, 56, 205)
HSLhsl(286, 60%, 51%)
HSVhsv(286, 73%, 80%)
CMYKcmyk(16.6%, 72.7%, 0%, 19.6%)
CIE-LABlab(46.84, 66.63, -54.97)
CIE-LCHlch(46.84, 86.38, 320.48°)
OKLaboklab(57.11% 0.1674 -0.1546)
OKLCHoklch(57.11% 0.228 317.3)
XYZxyz(29.2266, 15.8953, 59.2744)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38CD #5ACD38
analogous
#6038CD #AB38CD #CD38A4
triadic
#AB38CD #CDAB38 #38CDAB
tetradic
#AB38CD #CD6038 #5ACD38 #38A4CD
square
#AB38CD #CD6038 #5ACD38 #38A4CD
split-complementary
#AB38CD #A4CD38 #38CD60
monochromatic
#5C1C6F #8428A0 #AB38CD #C069D9 #D49AE6

Accessibility & contrast

On white

5.03
#AB38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AB38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38CD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38CD#FFFFFF#000000##FFFFFF
##AB38CD1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#3B72CA
Tritanopia (blue-blind)
#A95780
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab38cd;
/* rgb */ color: rgb(171, 56, 205);
/* oklch */ color: oklch(57.1% 0.228 317.3);
Tailwind
colors: {
  custom: {
    50: '#c87add',
    500: '#ab38cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab38cd;
$custom-light: #c87add;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38cd",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 286.309,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57114,
    "c": 0.22783,
    "h": 317.3
  },
  "luminance": 0.15894
}

Semantic roles & 50–950 ramp

primary
#AB38CD
secondary
#9FD18F
accent
#E34569
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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