#9840BC#9840BC

#9840BC is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.3% C 0.195 H 314.6°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#9840BC
RGBrgb(152, 64, 188)
HSLhsl(283, 49%, 49%)
HSVhsv(283, 66%, 74%)
CMYKcmyk(19.1%, 66%, 0%, 26.3%)
CIE-LABlab(44.20, 55.94, -49.49)
CIE-LCHlch(44.20, 74.69, 318.50°)
OKLaboklab(54.33% 0.137 -0.1391)
OKLCHoklch(54.33% 0.195 314.6)
XYZxyz(23.8579, 13.9738, 49.0077)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9840BC #64BC40
analogous
#5A40BC #9840BC #BC40A2
triadic
#9840BC #BC9840 #40BC98
tetradic
#9840BC #BC5A40 #64BC40 #40A2BC
square
#9840BC #BC5A40 #64BC40 #40A2BC
split-complementary
#9840BC #A2BC40 #40BC5A
monochromatic
#4E2161 #73308E #9840BC #B16CCD #C99ADD

Accessibility & contrast

On white

5.53
#9840BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9840BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9840BC#FFFFFF#000000##FFFFFF
##9840BC1.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C0
Deuteranopia (green-blind)
#3C6BB9
Tritanopia (blue-blind)
#955879
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9840bc;
/* rgb */ color: rgb(152, 64, 188);
/* oklch */ color: oklch(54.3% 0.195 314.6);
Tailwind
colors: {
  custom: {
    50: '#ba7bd1',
    500: '#9840bc',
    950: '#000000',
  },
}
SCSS
$custom: #9840bc;
$custom-light: #ba7bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9840bc",
  "rgb": {
    "r": 152,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 282.581,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54326,
    "c": 0.19529,
    "h": 314.6
  },
  "luminance": 0.13973
}

Semantic roles & 50–950 ramp

primary
#9840BC
secondary
#A0C98F
accent
#D94F77
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9840BC

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

Preview Lab → · Contrast checker → · Palette generator →

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