#9840AD#9840AD

#9840AD is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.4% C 0.181 H 319.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9840AD
RGBrgb(152, 64, 173)
HSLhsl(288, 46%, 46%)
HSVhsv(288, 63%, 68%)
CMYKcmyk(12.1%, 63%, 0%, 32.2%)
CIE-LABlab(43.30, 52.89, -42.10)
CIE-LCHlch(43.30, 67.60, 321.48°)
OKLaboklab(53.39% 0.1373 -0.1175)
OKLCHoklch(53.39% 0.181 319.4)
XYZxyz(22.3242, 13.3603, 40.9299)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9840AD #55AD40
analogous
#6140AD #9840AD #AD408C
triadic
#9840AD #AD9840 #40AD98
tetradic
#9840AD #AD6140 #55AD40 #408CAD
square
#9840AD #AD6140 #55AD40 #408CAD
split-complementary
#9840AD #8CAD40 #40AD61
monochromatic
#491F54 #712F80 #9840AD #B364C6 #C991D6

Accessibility & contrast

On white

5.72
#9840AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9840AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9840AD
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9840AD#FFFFFF#000000##FFFFFF
##9840AD1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2260B0
Deuteranopia (green-blind)
#4869AA
Tritanopia (blue-blind)
#985271
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9840ad;
/* rgb */ color: rgb(152, 64, 173);
/* oklch */ color: oklch(53.4% 0.181 319.4);
Tailwind
colors: {
  custom: {
    50: '#b97bc6',
    500: '#9840ad',
    950: '#000000',
  },
}
SCSS
$custom: #9840ad;
$custom-light: #b97bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#9840ad",
  "rgb": {
    "r": 152,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 288.44,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53393,
    "c": 0.18073,
    "h": 319.4
  },
  "luminance": 0.13359
}

Semantic roles & 50–950 ramp

primary
#9840AD
secondary
#92C287
accent
#D6526B
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9840AD

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

Preview Lab → · Contrast checker → · Palette generator →

#9840AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva