#9940CB#9940CB

#9940CB is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.4% C 0.210 H 310.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9940CB
RGBrgb(153, 64, 203)
HSLhsl(278, 57%, 52%)
HSVhsv(278, 68%, 80%)
CMYKcmyk(24.6%, 68.5%, 0%, 20.4%)
CIE-LABlab(45.29, 59.33, -56.43)
CIE-LCHlch(45.29, 81.88, 316.44°)
OKLaboklab(55.45% 0.1372 -0.1595)
OKLCHoklch(55.45% 0.21 310.7)
XYZxyz(25.7477, 14.7515, 57.9793)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940CB #72CB40
analogous
#5340CB #9940CB #CB40B8
triadic
#9940CB #CB9940 #40CB99
tetradic
#9940CB #CB5340 #72CB40 #40B8CB
square
#9940CB #CB5340 #72CB40 #40B8CB
split-complementary
#9940CB #B8CB40 #40CB53
monochromatic
#541F72 #772CA2 #9940CB #B370D8 #CCA0E5

Accessibility & contrast

On white

5.32
#9940CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9940CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940CB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940CB#FFFFFF#000000##FFFFFF
##9940CB1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9940cb;
/* rgb */ color: rgb(153, 64, 203);
/* oklch */ color: oklch(55.4% 0.210 310.7);
Tailwind
colors: {
  custom: {
    50: '#bb7cdc',
    500: '#9940cb',
    950: '#000000',
  },
}
SCSS
$custom: #9940cb;
$custom-light: #bb7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9940cb",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 278.417,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55447,
    "c": 0.21035,
    "h": 310.7
  },
  "luminance": 0.14751
}

Semantic roles & 50–950 ramp

primary
#9940CB
secondary
#ABD295
accent
#E0477E
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9940CB

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

Preview Lab → · Contrast checker → · Palette generator →

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