#9940DE#9940DE

#9940DE is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.8% C 0.229 H 306.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9940DE
RGBrgb(153, 64, 222)
HSLhsl(274, 71%, 56%)
HSVhsv(274, 71%, 87%)
CMYKcmyk(31.1%, 71.2%, 0%, 12.9%)
CIE-LABlab(46.60, 63.48, -65.22)
CIE-LCHlch(46.60, 91.01, 314.23°)
OKLaboklab(56.79% 0.1346 -0.1853)
OKLCHoklch(56.79% 0.229 306)
XYZxyz(28.1522, 15.7133, 70.6429)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940DE #85DE40
analogous
#4A40DE #9940DE #DE40D4
triadic
#9940DE #DE9940 #40DE99
tetradic
#9940DE #DE4A40 #85DE40 #40D4DE
square
#9940DE #DE4A40 #85DE40 #40D4DE
split-complementary
#9940DE #D4DE40 #40DE4A
monochromatic
#59188B #7A21C0 #9940DE #B574E7 #D1A8F0

Accessibility & contrast

On white

5.07
#9940DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9940DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940DE
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940DE#FFFFFF#000000##FFFFFF
##9940DE1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE3
Deuteranopia (green-blind)
#006FDB
Tritanopia (blue-blind)
#8D658B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9940de;
/* rgb */ color: rgb(153, 64, 222);
/* oklch */ color: oklch(56.8% 0.229 306.0);
Tailwind
colors: {
  custom: {
    50: '#bc7ce9',
    500: '#9940de',
    950: '#000000',
  },
}
SCSS
$custom: #9940de;
$custom-light: #bc7ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#9940de",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 273.797,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56789,
    "c": 0.22905,
    "h": 306
  },
  "luminance": 0.15713
}

Semantic roles & 50–950 ramp

primary
#9940DE
secondary
#B9DE9C
accent
#ED3A89
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9940DE

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

Preview Lab → · Contrast checker → · Palette generator →

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