#9940CE#9940CE

#9940CE is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.213 H 309.9°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9940CE
RGBrgb(153, 64, 206)
HSLhsl(278, 59%, 53%)
HSVhsv(278, 69%, 81%)
CMYKcmyk(25.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(45.49, 59.98, -57.84)
CIE-LCHlch(45.49, 83.32, 316.04°)
OKLaboklab(55.65% 0.1368 -0.1636)
OKLCHoklch(55.65% 0.213 309.9)
XYZxyz(26.1087, 14.8959, 59.8804)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940CE #75CE40
analogous
#5240CE #9940CE #CE40BC
triadic
#9940CE #CE9940 #40CE99
tetradic
#9940CE #CE5240 #75CE40 #40BCCE
square
#9940CE #CE5240 #75CE40 #40BCCE
split-complementary
#9940CE #BCCE40 #40CE52
monochromatic
#551E75 #782BA6 #9940CE #B371DA #CDA1E7

Accessibility & contrast

On white

5.28
#9940CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9940CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940CE
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940CE#FFFFFF#000000##FFFFFF
##9940CE1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#276DCB
Tritanopia (blue-blind)
#925F82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9940ce;
/* rgb */ color: rgb(153, 64, 206);
/* oklch */ color: oklch(55.7% 0.213 309.9);
Tailwind
colors: {
  custom: {
    50: '#bb7cde',
    500: '#9940ce',
    950: '#000000',
  },
}
SCSS
$custom: #9940ce;
$custom-light: #bb7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9940ce",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 277.606,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55653,
    "c": 0.2133,
    "h": 309.9
  },
  "luminance": 0.14895
}

Semantic roles & 50–950 ramp

primary
#9940CE
secondary
#ADD496
accent
#E24580
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9940CE

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

Preview Lab → · Contrast checker → · Palette generator →

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