#AB38BA#AB38BA

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

Color values

HEX#AB38BA
RGBrgb(171, 56, 186)
HSLhsl(293, 54%, 47%)
HSVhsv(293, 70%, 73%)
CMYKcmyk(8.1%, 69.9%, 0%, 27.1%)
CIE-LABlab(45.68, 63.11, -45.79)
CIE-LCHlch(45.68, 77.97, 324.04°)
OKLaboklab(55.92% 0.1687 -0.1277)
OKLCHoklch(55.92% 0.212 322.9)
XYZxyz(27.0708, 15.0330, 47.9206)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38BA #47BA38
analogous
#6A38BA #AB38BA #BA3888
triadic
#AB38BA #BAAB38 #38BAAB
tetradic
#AB38BA #BA6A38 #47BA38 #3888BA
square
#AB38BA #BA6A38 #47BA38 #3888BA
split-complementary
#AB38BA #88BA38 #38BA6A
monochromatic
#551C5C #802A8B #AB38BA #C260CF #D48FDD

Accessibility & contrast

On white

5.24
#AB38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB38BA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38BA#FFFFFF#000000##FFFFFF
##AB38BA1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A64BE
Deuteranopia (green-blind)
#4C71B7
Tritanopia (blue-blind)
#AD4F75
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab38ba;
/* rgb */ color: rgb(171, 56, 186);
/* oklch */ color: oklch(55.9% 0.212 322.9);
Tailwind
colors: {
  custom: {
    50: '#c879cf',
    500: '#ab38ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab38ba;
$custom-light: #c879cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38ba",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 293.077,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55918,
    "c": 0.21156,
    "h": 322.9
  },
  "luminance": 0.15031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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