#AB38BF#AB38BF

#AB38BF is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.216 H 321.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AB38BF
RGBrgb(171, 56, 191)
HSLhsl(291, 55%, 48%)
HSVhsv(291, 71%, 75%)
CMYKcmyk(10.5%, 70.7%, 0%, 25.1%)
CIE-LABlab(45.97, 64.02, -48.24)
CIE-LCHlch(45.97, 80.16, 323.00°)
OKLaboklab(56.22% 0.1685 -0.1349)
OKLCHoklch(56.22% 0.216 321.3)
XYZxyz(27.6117, 15.2493, 50.7691)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38BF #4CBF38
analogous
#6738BF #AB38BF #BF388F
triadic
#AB38BF #BFAB38 #38BFAB
tetradic
#AB38BF #BF6738 #4CBF38 #388FBF
square
#AB38BF #BF6738 #4CBF38 #388FBF
split-complementary
#AB38BF #8FBF38 #38BF67
monochromatic
#561C60 #812A90 #AB38BF #C163D1 #D492DF

Accessibility & contrast

On white

5.19
#AB38BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AB38BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38BF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38BF#FFFFFF#000000##FFFFFF
##AB38BF1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#4871BC
Tritanopia (blue-blind)
#AC5178
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab38bf;
/* rgb */ color: rgb(171, 56, 191);
/* oklch */ color: oklch(56.2% 0.216 321.3);
Tailwind
colors: {
  custom: {
    50: '#c879d3',
    500: '#ab38bf',
    950: '#000000',
  },
}
SCSS
$custom: #ab38bf;
$custom-light: #c879d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38bf",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 291.111,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56223,
    "c": 0.21579,
    "h": 321.3
  },
  "luminance": 0.15248
}

Semantic roles & 50–950 ramp

primary
#AB38BF
secondary
#92CA89
accent
#DE4A60
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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