#AD40CB#AD40CB

#AD40CB is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.0% C 0.218 H 318.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AD40CB
RGBrgb(173, 64, 203)
HSLhsl(287, 57%, 52%)
HSVhsv(287, 68%, 80%)
CMYKcmyk(14.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(48.09, 63.60, -51.79)
CIE-LCHlch(48.09, 82.02, 320.85°)
OKLaboklab(58.03% 0.162 -0.1452)
OKLCHoklch(58.03% 0.218 318.1)
XYZxyz(29.8450, 16.8641, 58.1714)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40CB #5ECB40
analogous
#6740CB #AD40CB #CB40A4
triadic
#AD40CB #CBAD40 #40CBAD
tetradic
#AD40CB #CB6740 #5ECB40 #40A4CB
square
#AD40CB #CB6740 #5ECB40 #40A4CB
split-complementary
#AD40CB #A4CB40 #40CB67
monochromatic
#601F72 #882CA2 #AD40CB #C270D8 #D6A0E5

Accessibility & contrast

On white

4.80
#AD40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AD40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD40CB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40CB#FFFFFF#000000##FFFFFF
##AD40CB1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#4676C8
Tritanopia (blue-blind)
#AC5A81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ad40cb;
/* rgb */ color: rgb(173, 64, 203);
/* oklch */ color: oklch(58.0% 0.218 318.1);
Tailwind
colors: {
  custom: {
    50: '#c97edb',
    500: '#ad40cb',
    950: '#000000',
  },
}
SCSS
$custom: #ad40cb;
$custom-light: #c97edb;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40cb",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 287.05,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58027,
    "c": 0.21756,
    "h": 318.1
  },
  "luminance": 0.16863
}

Semantic roles & 50–950 ramp

primary
#AD40CB
secondary
#A2D295
accent
#E04768
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AD40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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