#9840AE#9840AE

#9840AE is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.5% C 0.182 H 319.1°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9840AE
RGBrgb(152, 64, 174)
HSLhsl(288, 46%, 47%)
HSVhsv(288, 63%, 68%)
CMYKcmyk(12.6%, 63.2%, 0%, 31.8%)
CIE-LABlab(43.36, 53.09, -42.60)
CIE-LCHlch(43.36, 68.06, 321.26°)
OKLaboklab(53.45% 0.1373 -0.119)
OKLCHoklch(53.45% 0.182 319.1)
XYZxyz(22.4213, 13.3992, 41.4415)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9840AE #56AE40
analogous
#6140AE #9840AE #AE408D
triadic
#9840AE #AE9840 #40AE98
tetradic
#9840AE #AE6140 #56AE40 #408DAE
square
#9840AE #AE6140 #56AE40 #408DAE
split-complementary
#9840AE #8DAE40 #40AE61
monochromatic
#4A1F55 #713081 #9840AE #B365C6 #C992D7

Accessibility & contrast

On white

5.71
#9840AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9840AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9840AE#FFFFFF#000000##FFFFFF
##9840AE1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2161B1
Deuteranopia (green-blind)
#4769AB
Tritanopia (blue-blind)
#985371
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9840ae;
/* rgb */ color: rgb(152, 64, 174);
/* oklch */ color: oklch(53.5% 0.182 319.1);
Tailwind
colors: {
  custom: {
    50: '#b97bc7',
    500: '#9840ae',
    950: '#000000',
  },
}
SCSS
$custom: #9840ae;
$custom-light: #b97bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9840ae",
  "rgb": {
    "r": 152,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 288,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53453,
    "c": 0.18169,
    "h": 319.1
  },
  "luminance": 0.13398
}

Semantic roles & 50–950 ramp

primary
#9840AE
secondary
#93C288
accent
#D6526C
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9840AE

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

Preview Lab → · Contrast checker → · Palette generator →

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