#9940D9#9940D9

#9940D9 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.4% C 0.224 H 307.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9940D9
RGBrgb(153, 64, 217)
HSLhsl(275, 67%, 55%)
HSVhsv(275, 71%, 85%)
CMYKcmyk(29.5%, 70.5%, 0%, 14.9%)
CIE-LABlab(46.24, 62.38, -62.94)
CIE-LCHlch(46.24, 88.61, 314.74°)
OKLaboklab(56.43% 0.1354 -0.1786)
OKLCHoklch(56.43% 0.224 307.2)
XYZxyz(27.4920, 15.4492, 67.1659)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940D9 #80D940
analogous
#4D40D9 #9940D9 #D940CC
triadic
#9940D9 #D99940 #40D999
tetradic
#9940D9 #D94D40 #80D940 #40CCD9
square
#9940D9 #D94D40 #80D940 #40CCD9
split-complementary
#9940D9 #CCD940 #40D94D
monochromatic
#581A84 #7A24B7 #9940D9 #B473E3 #D0A6ED

Accessibility & contrast

On white

5.13
#9940D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9940D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940D9
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940D9#FFFFFF#000000##FFFFFF
##9940D91.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0A6ED6
Tritanopia (blue-blind)
#8E6388
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9940d9;
/* rgb */ color: rgb(153, 64, 217);
/* oklch */ color: oklch(56.4% 0.224 307.2);
Tailwind
colors: {
  custom: {
    50: '#bc7ce6',
    500: '#9940d9',
    950: '#000000',
  },
}
SCSS
$custom: #9940d9;
$custom-light: #bc7ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9940d9",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 274.902,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56427,
    "c": 0.22412,
    "h": 307.2
  },
  "luminance": 0.15449
}

Semantic roles & 50–950 ramp

primary
#9940D9
secondary
#B5DA9A
accent
#EA3E86
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9940D9

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

Preview Lab → · Contrast checker → · Palette generator →

#9940D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva