#AB38BB#AB38BB

#AB38BB is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.0% C 0.212 H 322.6°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AB38BB
RGBrgb(171, 56, 187)
HSLhsl(293, 54%, 48%)
HSVhsv(293, 70%, 73%)
CMYKcmyk(8.6%, 70.1%, 0%, 26.7%)
CIE-LABlab(45.74, 63.29, -46.28)
CIE-LCHlch(45.74, 78.41, 323.83°)
OKLaboklab(55.98% 0.1686 -0.1291)
OKLCHoklch(55.98% 0.212 322.6)
XYZxyz(27.1775, 15.0757, 48.4825)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38BB #48BB38
analogous
#6A38BB #AB38BB #BB3889
triadic
#AB38BB #BBAB38 #38BBAB
tetradic
#AB38BB #BB6A38 #48BB38 #3889BB
square
#AB38BB #BB6A38 #48BB38 #3889BB
split-complementary
#AB38BB #89BB38 #38BB6A
monochromatic
#551C5D #802A8C #AB38BB #C261D0 #D490DE

Accessibility & contrast

On white

5.23
#AB38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AB38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38BB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38BB#FFFFFF#000000##FFFFFF
##AB38BB1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0664BF
Deuteranopia (green-blind)
#4B71B8
Tritanopia (blue-blind)
#AD4F76
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab38bb;
/* rgb */ color: rgb(171, 56, 187);
/* oklch */ color: oklch(56.0% 0.212 322.6);
Tailwind
colors: {
  custom: {
    50: '#c879d0',
    500: '#ab38bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab38bb;
$custom-light: #c879d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38bb",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 292.672,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55978,
    "c": 0.21239,
    "h": 322.6
  },
  "luminance": 0.15074
}

Semantic roles & 50–950 ramp

primary
#AB38BB
secondary
#8EC886
accent
#DD4B5C
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AB38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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