#AB40BB#AB40BB

#AB40BB is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.202 H 322.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AB40BB
RGBrgb(171, 64, 187)
HSLhsl(292, 49%, 49%)
HSVhsv(292, 66%, 73%)
CMYKcmyk(8.6%, 65.8%, 0%, 26.7%)
CIE-LABlab(46.86, 60.13, -44.49)
CIE-LCHlch(46.86, 74.80, 323.50°)
OKLaboklab(56.79% 0.1601 -0.124)
OKLCHoklch(56.79% 0.202 322.2)
XYZxyz(27.5967, 15.9141, 48.6222)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40BB #50BB40
analogous
#6E40BB #AB40BB #BB408E
triadic
#AB40BB #BBAB40 #40BBAB
tetradic
#AB40BB #BB6E40 #50BB40 #408EBB
square
#AB40BB #BB6E40 #50BB40 #408EBB
split-complementary
#AB40BB #8EBB40 #40BB6E
monochromatic
#582160 #81308D #AB40BB #C06CCD #D399DC

Accessibility & contrast

On white

5.02
#AB40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AB40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40BB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40BB#FFFFFF#000000##FFFFFF
##AB40BB1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BF
Deuteranopia (green-blind)
#5073B8
Tritanopia (blue-blind)
#AD5478
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab40bb;
/* rgb */ color: rgb(171, 64, 187);
/* oklch */ color: oklch(56.8% 0.202 322.2);
Tailwind
colors: {
  custom: {
    50: '#c77dd0',
    500: '#ab40bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab40bb;
$custom-light: #c77dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40bb",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 292.195,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56786,
    "c": 0.20245,
    "h": 322.2
  },
  "luminance": 0.15913
}

Semantic roles & 50–950 ramp

primary
#AB40BB
secondary
#96C88F
accent
#D94F61
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AB40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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