#9840A9#9840A9

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

Color values

HEX#9840A9
RGBrgb(152, 64, 169)
HSLhsl(290, 45%, 46%)
HSVhsv(290, 62%, 66%)
CMYKcmyk(10.1%, 62.1%, 0%, 33.7%)
CIE-LABlab(43.07, 52.10, -40.09)
CIE-LCHlch(43.07, 65.74, 322.42°)
OKLaboklab(53.15% 0.1372 -0.1117)
OKLCHoklch(53.15% 0.177 320.9)
XYZxyz(21.9429, 13.2078, 38.9220)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9840A9 #51A940
analogous
#6440A9 #9840A9 #A94085
triadic
#9840A9 #A99840 #40A998
tetradic
#9840A9 #A96440 #51A940 #4085A9
square
#9840A9 #A96440 #51A940 #4085A9
split-complementary
#9840A9 #85A940 #40A964
monochromatic
#481E50 #702F7D #9840A9 #B462C4 #C98FD5

Accessibility & contrast

On white

5.77
#9840A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9840A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9840A9#FFFFFF#000000##FFFFFF
##9840A91.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275FAC
Deuteranopia (green-blind)
#4A69A6
Tritanopia (blue-blind)
#99516F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9840a9;
/* rgb */ color: rgb(152, 64, 169);
/* oklch */ color: oklch(53.2% 0.177 320.9);
Tailwind
colors: {
  custom: {
    50: '#b97ac3',
    500: '#9840a9',
    950: '#000000',
  },
}
SCSS
$custom: #9840a9;
$custom-light: #b97ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#9840a9",
  "rgb": {
    "r": 152,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 290.286,
    "s": 45.064,
    "l": 45.686
  },
  "oklch": {
    "l": 0.53155,
    "c": 0.17691,
    "h": 320.9
  },
  "luminance": 0.13207
}

Semantic roles & 50–950 ramp

primary
#9840A9
secondary
#8FC085
accent
#D55368
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A12
muted
#817C81

Preview Lab

Preview with #9840A9

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

Preview Lab → · Contrast checker → · Palette generator →

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