#AB38B7#AB38B7

#AB38B7 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.7% C 0.209 H 323.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AB38B7
RGBrgb(171, 56, 183)
HSLhsl(294, 53%, 47%)
HSVhsv(294, 69%, 72%)
CMYKcmyk(6.6%, 69.4%, 0%, 28.2%)
CIE-LABlab(45.51, 62.57, -44.31)
CIE-LCHlch(45.51, 76.67, 324.70°)
OKLaboklab(55.74% 0.1687 -0.1234)
OKLCHoklch(55.74% 0.209 323.8)
XYZxyz(26.7552, 14.9068, 46.2586)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38B7 #44B738
analogous
#6C38B7 #AB38B7 #B73884
triadic
#AB38B7 #B7AB38 #38B7AB
tetradic
#AB38B7 #B76C38 #44B738 #3884B7
square
#AB38B7 #B76C38 #44B738 #3884B7
split-complementary
#AB38B7 #84B738 #38B76C
monochromatic
#531B59 #7F2A88 #AB38B7 #C35ECE #D58DDC

Accessibility & contrast

On white

5.28
#AB38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AB38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38B7
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38B7#FFFFFF#000000##FFFFFF
##AB38B71.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1363BB
Deuteranopia (green-blind)
#4E70B4
Tritanopia (blue-blind)
#AE4D74
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab38b7;
/* rgb */ color: rgb(171, 56, 183);
/* oklch */ color: oklch(55.7% 0.209 323.8);
Tailwind
colors: {
  custom: {
    50: '#c879cd',
    500: '#ab38b7',
    950: '#000000',
  },
}
SCSS
$custom: #ab38b7;
$custom-light: #c879cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38b7",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 294.331,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55738,
    "c": 0.20903,
    "h": 323.8
  },
  "luminance": 0.14905
}

Semantic roles & 50–950 ramp

primary
#AB38B7
secondary
#8AC784
accent
#DD4B59
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AB38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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