#9840AC#9840AC

#9840AC is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.3% C 0.180 H 319.8°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9840AC
RGBrgb(152, 64, 172)
HSLhsl(289, 46%, 46%)
HSVhsv(289, 63%, 67%)
CMYKcmyk(11.6%, 62.8%, 0%, 32.5%)
CIE-LABlab(43.24, 52.69, -41.60)
CIE-LCHlch(43.24, 67.13, 321.71°)
OKLaboklab(53.33% 0.1373 -0.1161)
OKLCHoklch(53.33% 0.18 319.8)
XYZxyz(22.2278, 13.3218, 40.4222)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9840AC #54AC40
analogous
#6240AC #9840AC #AC408A
triadic
#9840AC #AC9840 #40AC98
tetradic
#9840AC #AC6240 #54AC40 #408AAC
square
#9840AC #AC6240 #54AC40 #408AAC
split-complementary
#9840AC #8AAC40 #40AC62
monochromatic
#491F53 #712F7F #9840AC #B364C5 #C991D6

Accessibility & contrast

On white

5.73
#9840AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9840AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9840AC
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9840AC#FFFFFF#000000##FFFFFF
##9840AC1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AF
Deuteranopia (green-blind)
#4869A9
Tritanopia (blue-blind)
#995270
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9840ac;
/* rgb */ color: rgb(152, 64, 172);
/* oklch */ color: oklch(53.3% 0.180 319.8);
Tailwind
colors: {
  custom: {
    50: '#b97bc5',
    500: '#9840ac',
    950: '#000000',
  },
}
SCSS
$custom: #9840ac;
$custom-light: #b97bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#9840ac",
  "rgb": {
    "r": 152,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 288.889,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.53333,
    "c": 0.17977,
    "h": 319.8
  },
  "luminance": 0.13321
}

Semantic roles & 50–950 ramp

primary
#9840AC
secondary
#92C187
accent
#D5526B
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9840AC

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

Preview Lab → · Contrast checker → · Palette generator →

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