#AB38D4#AB38D4

#AB38D4 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.6% C 0.234 H 315.4°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AB38D4
RGBrgb(171, 56, 212)
HSLhsl(284, 64%, 53%)
HSVhsv(284, 74%, 83%)
CMYKcmyk(19.3%, 73.6%, 0%, 16.9%)
CIE-LABlab(47.29, 67.98, -58.26)
CIE-LCHlch(47.29, 89.53, 319.40°)
OKLaboklab(57.58% 0.1666 -0.1642)
OKLCHoklch(57.58% 0.234 315.4)
XYZxyz(30.0905, 16.2409, 63.8243)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38D4 #61D438
analogous
#5D38D4 #AB38D4 #D438AF
triadic
#AB38D4 #D4AB38 #38D4AB
tetradic
#AB38D4 #D45D38 #61D438 #38AFD4
square
#AB38D4 #D45D38 #61D438 #38AFD4
split-complementary
#AB38D4 #AFD438 #38D45D
monochromatic
#5F1A78 #8725AA #AB38D4 #C06ADF #D59DEA

Accessibility & contrast

On white

4.94
#AB38D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AB38D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38D4
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38D4#FFFFFF#000000##FFFFFF
##AB38D41.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#3373D1
Tritanopia (blue-blind)
#A85A84
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab38d4;
/* rgb */ color: rgb(171, 56, 212);
/* oklch */ color: oklch(57.6% 0.234 315.4);
Tailwind
colors: {
  custom: {
    50: '#c87ae2',
    500: '#ab38d4',
    950: '#000000',
  },
}
SCSS
$custom: #ab38d4;
$custom-light: #c87ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38d4",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 284.231,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57579,
    "c": 0.23392,
    "h": 315.4
  },
  "luminance": 0.1624
}

Semantic roles & 50–950 ramp

primary
#AB38D4
secondary
#A4D692
accent
#E7406C
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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