#9940CC#9940CC

#9940CC is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.211 H 310.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9940CC
RGBrgb(153, 64, 204)
HSLhsl(278, 58%, 53%)
HSVhsv(278, 69%, 80%)
CMYKcmyk(25%, 68.6%, 0%, 20%)
CIE-LABlab(45.36, 59.55, -56.90)
CIE-LCHlch(45.36, 82.36, 316.30°)
OKLaboklab(55.52% 0.1371 -0.1609)
OKLCHoklch(55.52% 0.211 310.4)
XYZxyz(25.8672, 14.7993, 58.6089)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940CC #73CC40
analogous
#5340CC #9940CC #CC40B9
triadic
#9940CC #CC9940 #40CC99
tetradic
#9940CC #CC5340 #73CC40 #40B9CC
square
#9940CC #CC5340 #73CC40 #40B9CC
split-complementary
#9940CC #B9CC40 #40CC53
monochromatic
#541F73 #782CA3 #9940CC #B370D9 #CDA1E6

Accessibility & contrast

On white

5.30
#9940CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9940CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940CC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940CC#FFFFFF#000000##FFFFFF
##9940CC1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#2A6DC9
Tritanopia (blue-blind)
#925E81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9940cc;
/* rgb */ color: rgb(153, 64, 204);
/* oklch */ color: oklch(55.5% 0.211 310.4);
Tailwind
colors: {
  custom: {
    50: '#bb7cdc',
    500: '#9940cc',
    950: '#000000',
  },
}
SCSS
$custom: #9940cc;
$custom-light: #bb7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9940cc",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 278.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55516,
    "c": 0.21133,
    "h": 310.4
  },
  "luminance": 0.14799
}

Semantic roles & 50–950 ramp

primary
#9940CC
secondary
#ACD295
accent
#E1477F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9940CC

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

Preview Lab → · Contrast checker → · Palette generator →

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