#AB40BD#AB40BD

#AB40BD is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 56.9% C 0.204 H 321.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AB40BD
RGBrgb(171, 64, 189)
HSLhsl(291, 49%, 50%)
HSVhsv(291, 66%, 74%)
CMYKcmyk(9.5%, 66.1%, 0%, 25.9%)
CIE-LABlab(46.97, 60.50, -45.47)
CIE-LCHlch(46.97, 75.69, 323.07°)
OKLaboklab(56.9% 0.16 -0.1268)
OKLCHoklch(56.9% 0.204 321.6)
XYZxyz(27.8123, 16.0003, 49.7576)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40BD #52BD40
analogous
#6D40BD #AB40BD #BD4091
triadic
#AB40BD #BDAB40 #40BDAB
tetradic
#AB40BD #BD6D40 #52BD40 #4091BD
square
#AB40BD #BD6D40 #52BD40 #4091BD
split-complementary
#AB40BD #91BD40 #40BD6D
monochromatic
#582162 #82318F #AB40BD #C06DCD #D39ADD

Accessibility & contrast

On white

5.00
#AB40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AB40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40BD
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40BD#FFFFFF#000000##FFFFFF
##AB40BD1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C68C1
Deuteranopia (green-blind)
#4F73BA
Tritanopia (blue-blind)
#AD5579
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab40bd;
/* rgb */ color: rgb(171, 64, 189);
/* oklch */ color: oklch(56.9% 0.204 321.6);
Tailwind
colors: {
  custom: {
    50: '#c77dd1',
    500: '#ab40bd',
    950: '#000000',
  },
}
SCSS
$custom: #ab40bd;
$custom-light: #c77dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40bd",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 291.36,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56904,
    "c": 0.20421,
    "h": 321.6
  },
  "luminance": 0.15999
}

Semantic roles & 50–950 ramp

primary
#AB40BD
secondary
#98C990
accent
#D94F63
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AB40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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