#AB38B8#AB38B8

#AB38B8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.210 H 323.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AB38B8
RGBrgb(171, 56, 184)
HSLhsl(294, 53%, 47%)
HSVhsv(294, 70%, 72%)
CMYKcmyk(7.1%, 69.6%, 0%, 27.8%)
CIE-LABlab(45.56, 62.75, -44.80)
CIE-LCHlch(45.56, 77.10, 324.48°)
OKLaboklab(55.8% 0.1687 -0.1248)
OKLCHoklch(55.8% 0.21 323.5)
XYZxyz(26.8597, 14.9485, 46.8087)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38B8 #45B838
analogous
#6B38B8 #AB38B8 #B83885
triadic
#AB38B8 #B8AB38 #38B8AB
tetradic
#AB38B8 #B86B38 #45B838 #3885B8
square
#AB38B8 #B86B38 #45B838 #3885B8
split-complementary
#AB38B8 #85B838 #38B86B
monochromatic
#541B5A #7F2A89 #AB38B8 #C35FCE #D58EDD

Accessibility & contrast

On white

5.26
#AB38B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AB38B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38B8
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38B8#FFFFFF#000000##FFFFFF
##AB38B81.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1163BC
Deuteranopia (green-blind)
#4D70B5
Tritanopia (blue-blind)
#AE4E74
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab38b8;
/* rgb */ color: rgb(171, 56, 184);
/* oklch */ color: oklch(55.8% 0.210 323.5);
Tailwind
colors: {
  custom: {
    50: '#c879ce',
    500: '#ab38b8',
    950: '#000000',
  },
}
SCSS
$custom: #ab38b8;
$custom-light: #c879ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38b8",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 293.906,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55798,
    "c": 0.20987,
    "h": 323.5
  },
  "luminance": 0.14947
}

Semantic roles & 50–950 ramp

primary
#AB38B8
secondary
#8BC785
accent
#DD4B5A
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AB38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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