#9940CD#9940CD

#9940CD is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.6% C 0.212 H 310.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9940CD
RGBrgb(153, 64, 205)
HSLhsl(278, 59%, 53%)
HSVhsv(278, 69%, 80%)
CMYKcmyk(25.4%, 68.8%, 0%, 19.6%)
CIE-LABlab(45.42, 59.76, -57.37)
CIE-LCHlch(45.42, 82.84, 316.17°)
OKLaboklab(55.58% 0.1369 -0.1622)
OKLCHoklch(55.58% 0.212 310.2)
XYZxyz(25.9876, 14.8474, 59.2426)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940CD #74CD40
analogous
#5240CD #9940CD #CD40BB
triadic
#9940CD #CD9940 #40CD99
tetradic
#9940CD #CD5240 #74CD40 #40BBCD
square
#9940CD #CD5240 #74CD40 #40BBCD
split-complementary
#9940CD #BBCD40 #40CD52
monochromatic
#551E74 #782BA5 #9940CD #B371DA #CDA1E6

Accessibility & contrast

On white

5.29
#9940CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9940CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940CD
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940CD#FFFFFF#000000##FFFFFF
##9940CD1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#296DCA
Tritanopia (blue-blind)
#925E82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9940cd;
/* rgb */ color: rgb(153, 64, 205);
/* oklch */ color: oklch(55.6% 0.212 310.2);
Tailwind
colors: {
  custom: {
    50: '#bb7cdd',
    500: '#9940cd',
    950: '#000000',
  },
}
SCSS
$custom: #9940cd;
$custom-light: #bb7cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9940cd",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 277.872,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55584,
    "c": 0.21231,
    "h": 310.2
  },
  "luminance": 0.14847
}

Semantic roles & 50–950 ramp

primary
#9940CD
secondary
#ACD396
accent
#E2467F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9940CD

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

Preview Lab → · Contrast checker → · Palette generator →

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