#AB40B4#AB40B4

#AB40B4 is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.4% C 0.196 H 324.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AB40B4
RGBrgb(171, 64, 180)
HSLhsl(295, 48%, 48%)
HSVhsv(295, 64%, 71%)
CMYKcmyk(5%, 64.4%, 0%, 29.4%)
CIE-LABlab(46.47, 58.85, -41.01)
CIE-LCHlch(46.47, 71.73, 325.13°)
OKLaboklab(56.38% 0.1599 -0.1138)
OKLCHoklch(56.38% 0.196 324.6)
XYZxyz(26.8655, 15.6216, 44.7714)
Luminance0.1562 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40B4 #49B440
analogous
#7140B4 #AB40B4 #B44083
triadic
#AB40B4 #B4AB40 #40B4AB
tetradic
#AB40B4 #B47140 #49B440 #4083B4
square
#AB40B4 #B47140 #49B440 #4083B4
split-complementary
#AB40B4 #83B440 #40B471
monochromatic
#55205A #803087 #AB40B4 #C268C9 #D495D9

Accessibility & contrast

On white

5.09
#AB40B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#AB40B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40B4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40B4#FFFFFF#000000##FFFFFF
##AB40B41.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2966B7
Deuteranopia (green-blind)
#5473B1
Tritanopia (blue-blind)
#AE5174
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab40b4;
/* rgb */ color: rgb(171, 64, 180);
/* oklch */ color: oklch(56.4% 0.196 324.6);
Tailwind
colors: {
  custom: {
    50: '#c77dcb',
    500: '#ab40b4',
    950: '#000000',
  },
}
SCSS
$custom: #ab40b4;
$custom-light: #c77dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40b4",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 295.345,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56381,
    "c": 0.19632,
    "h": 324.6
  },
  "luminance": 0.1562
}

Semantic roles & 50–950 ramp

primary
#AB40B4
secondary
#8FC58B
accent
#D7515B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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