#AD40B2#AD40B2

#AD40B2 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.5% C 0.196 H 326.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AD40B2
RGBrgb(173, 64, 178)
HSLhsl(297, 47%, 47%)
HSVhsv(297, 64%, 70%)
CMYKcmyk(2.8%, 64%, 0%, 30.2%)
CIE-LABlab(46.67, 58.98, -39.51)
CIE-LCHlch(46.67, 70.99, 326.18°)
OKLaboklab(56.55% 0.1621 -0.1094)
OKLCHoklch(56.55% 0.196 326)
XYZxyz(27.1023, 15.7671, 43.7267)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40B2 #45B240
analogous
#7440B2 #AD40B2 #B2407E
triadic
#AD40B2 #B2AD40 #40B2AD
tetradic
#AD40B2 #B27440 #45B240 #407EB2
square
#AD40B2 #B27440 #45B240 #407EB2
split-complementary
#AD40B2 #7EB240 #40B274
monochromatic
#552058 #813085 #AD40B2 #C467C8 #D594D8

Accessibility & contrast

On white

5.06
#AD40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AD40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD40B2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40B2#FFFFFF#000000##FFFFFF
##AD40B21.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#B15073
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ad40b2;
/* rgb */ color: rgb(173, 64, 178);
/* oklch */ color: oklch(56.5% 0.196 326.0);
Tailwind
colors: {
  custom: {
    50: '#c97dc9',
    500: '#ad40b2',
    950: '#000000',
  },
}
SCSS
$custom: #ad40b2;
$custom-light: #c97dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40b2",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 297.368,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56546,
    "c": 0.19562,
    "h": 326
  },
  "luminance": 0.15765
}

Semantic roles & 50–950 ramp

primary
#AD40B2
secondary
#8CC48A
accent
#D75157
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AD40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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