#AD40B4#AD40B4

#AD40B4 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.7% C 0.197 H 325.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AD40B4
RGBrgb(173, 64, 180)
HSLhsl(296, 48%, 48%)
HSVhsv(296, 64%, 71%)
CMYKcmyk(3.9%, 64.4%, 0%, 29.4%)
CIE-LABlab(46.77, 59.34, -40.51)
CIE-LCHlch(46.77, 71.85, 325.68°)
OKLaboklab(56.66% 0.1622 -0.1124)
OKLCHoklch(56.66% 0.197 325.3)
XYZxyz(27.3046, 15.8480, 44.7920)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40B4 #47B440
analogous
#7340B4 #AD40B4 #B44081
triadic
#AD40B4 #B4AD40 #40B4AD
tetradic
#AD40B4 #B47340 #47B440 #4081B4
square
#AD40B4 #B47340 #47B440 #4081B4
split-complementary
#AD40B4 #81B440 #40B473
monochromatic
#56205A #823087 #AD40B4 #C368C9 #D595D9

Accessibility & contrast

On white

5.04
#AD40B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AD40B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD40B4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40B4#FFFFFF#000000##FFFFFF
##AD40B41.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B66B7
Deuteranopia (green-blind)
#5674B1
Tritanopia (blue-blind)
#B15174
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ad40b4;
/* rgb */ color: rgb(173, 64, 180);
/* oklch */ color: oklch(56.7% 0.197 325.3);
Tailwind
colors: {
  custom: {
    50: '#c97dcb',
    500: '#ad40b4',
    950: '#000000',
  },
}
SCSS
$custom: #ad40b4;
$custom-light: #c97dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40b4",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 296.379,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56658,
    "c": 0.19733,
    "h": 325.3
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#AD40B4
secondary
#8EC58B
accent
#D75159
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AD40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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