#AB38BC#AB38BC

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

Color values

HEX#AB38BC
RGBrgb(171, 56, 188)
HSLhsl(292, 54%, 48%)
HSVhsv(292, 70%, 74%)
CMYKcmyk(9%, 70.2%, 0%, 26.3%)
CIE-LABlab(45.80, 63.47, -46.77)
CIE-LCHlch(45.80, 78.84, 323.62°)
OKLaboklab(56.04% 0.1686 -0.1306)
OKLCHoklch(56.04% 0.213 322.2)
XYZxyz(27.2849, 15.1186, 49.0482)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38BC #49BC38
analogous
#6938BC #AB38BC #BC388B
triadic
#AB38BC #BCAB38 #38BCAB
tetradic
#AB38BC #BC6938 #49BC38 #388BBC
square
#AB38BC #BC6938 #49BC38 #388BBC
split-complementary
#AB38BC #8BBC38 #38BC69
monochromatic
#551C5E #802A8D #AB38BC #C261D0 #D490DE

Accessibility & contrast

On white

5.22
#AB38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#AB38BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38BC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38BC#FFFFFF#000000##FFFFFF
##AB38BC1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0264C0
Deuteranopia (green-blind)
#4A71B9
Tritanopia (blue-blind)
#AD4F76
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab38bc;
/* rgb */ color: rgb(171, 56, 188);
/* oklch */ color: oklch(56.0% 0.213 322.2);
Tailwind
colors: {
  custom: {
    50: '#c879d1',
    500: '#ab38bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab38bc;
$custom-light: #c879d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38bc",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 292.273,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56039,
    "c": 0.21325,
    "h": 322.2
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#AB38BC
secondary
#8FC987
accent
#DD4A5D
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AB38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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