#AD40CA#AD40CA

#AD40CA is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.217 H 318.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AD40CA
RGBrgb(173, 64, 202)
HSLhsl(287, 57%, 52%)
HSVhsv(287, 68%, 79%)
CMYKcmyk(14.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(48.03, 63.41, -51.31)
CIE-LCHlch(48.03, 81.57, 321.02°)
OKLaboklab(57.97% 0.162 -0.1438)
OKLCHoklch(57.97% 0.217 318.4)
XYZxyz(29.7262, 16.8166, 57.5458)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40CA #5DCA40
analogous
#6840CA #AD40CA #CA40A2
triadic
#AD40CA #CAAD40 #40CAAD
tetradic
#AD40CA #CA6840 #5DCA40 #40A2CA
square
#AD40CA #CA6840 #5DCA40 #40A2CA
split-complementary
#AD40CA #A2CA40 #40CA68
monochromatic
#5F1F70 #882CA0 #AD40CA #C270D7 #D6A0E5

Accessibility & contrast

On white

4.81
#AD40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AD40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD40CA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40CA#FFFFFF#000000##FFFFFF
##AD40CA1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#4776C7
Tritanopia (blue-blind)
#AC5A80
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ad40ca;
/* rgb */ color: rgb(173, 64, 202);
/* oklch */ color: oklch(58.0% 0.217 318.4);
Tailwind
colors: {
  custom: {
    50: '#c97edb',
    500: '#ad40ca',
    950: '#000000',
  },
}
SCSS
$custom: #ad40ca;
$custom-light: #c97edb;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40ca",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 287.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57965,
    "c": 0.21666,
    "h": 318.4
  },
  "luminance": 0.16815
}

Semantic roles & 50–950 ramp

primary
#AD40CA
secondary
#A1D195
accent
#E04868
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AD40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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