#9840AA#9840AA

#9840AA is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.2% C 0.178 H 320.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9840AA
RGBrgb(152, 64, 170)
HSLhsl(290, 45%, 46%)
HSVhsv(290, 62%, 67%)
CMYKcmyk(10.6%, 62.4%, 0%, 33.3%)
CIE-LABlab(43.13, 52.29, -40.59)
CIE-LCHlch(43.13, 66.20, 322.18°)
OKLaboklab(53.21% 0.1372 -0.1131)
OKLCHoklch(53.21% 0.178 320.5)
XYZxyz(22.0371, 13.2455, 39.4183)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9840AA #52AA40
analogous
#6340AA #9840AA #AA4087
triadic
#9840AA #AA9840 #40AA98
tetradic
#9840AA #AA6340 #52AA40 #4087AA
square
#9840AA #AA6340 #52AA40 #4087AA
split-complementary
#9840AA #87AA40 #40AA63
monochromatic
#481F51 #702F7E #9840AA #B463C4 #C98FD5

Accessibility & contrast

On white

5.76
#9840AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#9840AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9840AA#FFFFFF#000000##FFFFFF
##9840AA1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AD
Deuteranopia (green-blind)
#4A69A7
Tritanopia (blue-blind)
#99516F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9840aa;
/* rgb */ color: rgb(152, 64, 170);
/* oklch */ color: oklch(53.2% 0.178 320.5);
Tailwind
colors: {
  custom: {
    50: '#b97ac4',
    500: '#9840aa',
    950: '#000000',
  },
}
SCSS
$custom: #9840aa;
$custom-light: #b97ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#9840aa",
  "rgb": {
    "r": 152,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 289.811,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53214,
    "c": 0.17786,
    "h": 320.5
  },
  "luminance": 0.13244
}

Semantic roles & 50–950 ramp

primary
#9840AA
secondary
#90C086
accent
#D55369
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A12
muted
#817C81

Preview Lab

Preview with #9840AA

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

Preview Lab → · Contrast checker → · Palette generator →

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