#AB38B6#AB38B6

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

Color values

HEX#AB38B6
RGBrgb(171, 56, 182)
HSLhsl(295, 53%, 47%)
HSVhsv(295, 69%, 71%)
CMYKcmyk(6%, 69.2%, 0%, 28.6%)
CIE-LABlab(45.45, 62.40, -43.81)
CIE-LCHlch(45.45, 76.24, 324.93°)
OKLaboklab(55.68% 0.1687 -0.1219)
OKLCHoklch(55.68% 0.208 324.1)
XYZxyz(26.6515, 14.8653, 45.7124)
Luminance0.1486 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38B6 #43B638
analogous
#6C38B6 #AB38B6 #B63882
triadic
#AB38B6 #B6AB38 #38B6AB
tetradic
#AB38B6 #B66C38 #43B638 #3882B6
square
#AB38B6 #B66C38 #43B638 #3882B6
split-complementary
#AB38B6 #82B638 #38B66C
monochromatic
#531B58 #7F2A87 #AB38B6 #C45ECD #D58DDC

Accessibility & contrast

On white

5.29
#AB38B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#AB38B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38B6
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38B6#FFFFFF#000000##FFFFFF
##AB38B61.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1663BA
Deuteranopia (green-blind)
#4E70B3
Tritanopia (blue-blind)
#AE4D73
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab38b6;
/* rgb */ color: rgb(171, 56, 182);
/* oklch */ color: oklch(55.7% 0.208 324.1);
Tailwind
colors: {
  custom: {
    50: '#c879cc',
    500: '#ab38b6',
    950: '#000000',
  },
}
SCSS
$custom: #ab38b6;
$custom-light: #c879cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38b6",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 294.762,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55679,
    "c": 0.20819,
    "h": 324.1
  },
  "luminance": 0.14864
}

Semantic roles & 50–950 ramp

primary
#AB38B6
secondary
#89C684
accent
#DC4B58
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AB38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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