#AB38B9#AB38B9

#AB38B9 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.9% C 0.211 H 323.2°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AB38B9
RGBrgb(171, 56, 185)
HSLhsl(293, 54%, 47%)
HSVhsv(293, 70%, 73%)
CMYKcmyk(7.6%, 69.7%, 0%, 27.5%)
CIE-LABlab(45.62, 62.93, -45.29)
CIE-LCHlch(45.62, 77.54, 324.26°)
OKLaboklab(55.86% 0.1687 -0.1263)
OKLCHoklch(55.86% 0.211 323.2)
XYZxyz(26.9649, 14.9906, 47.3627)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38B9 #46B938
analogous
#6A38B9 #AB38B9 #B93887
triadic
#AB38B9 #B9AB38 #38B9AB
tetradic
#AB38B9 #B96A38 #46B938 #3887B9
square
#AB38B9 #B96A38 #46B938 #3887B9
split-complementary
#AB38B9 #87B938 #38B96A
monochromatic
#541C5B #802A8A #AB38B9 #C35FCF #D48EDD

Accessibility & contrast

On white

5.25
#AB38B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AB38B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38B9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38B9#FFFFFF#000000##FFFFFF
##AB38B91.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E63BD
Deuteranopia (green-blind)
#4C71B6
Tritanopia (blue-blind)
#AE4E75
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab38b9;
/* rgb */ color: rgb(171, 56, 185);
/* oklch */ color: oklch(55.9% 0.211 323.2);
Tailwind
colors: {
  custom: {
    50: '#c879ce',
    500: '#ab38b9',
    950: '#000000',
  },
}
SCSS
$custom: #ab38b9;
$custom-light: #c879ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38b9",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 293.488,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55858,
    "c": 0.21071,
    "h": 323.2
  },
  "luminance": 0.14989
}

Semantic roles & 50–950 ramp

primary
#AB38B9
secondary
#8CC885
accent
#DD4B5B
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AB38B9

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

Preview Lab → · Contrast checker → · Palette generator →

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