#9940DF#9940DF

#9940DF is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.9% C 0.230 H 305.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9940DF
RGBrgb(153, 64, 223)
HSLhsl(274, 71%, 56%)
HSVhsv(274, 71%, 87%)
CMYKcmyk(31.4%, 71.3%, 0%, 12.5%)
CIE-LABlab(46.67, 63.71, -65.67)
CIE-LCHlch(46.67, 91.49, 314.13°)
OKLaboklab(56.86% 0.1345 -0.1866)
OKLCHoklch(56.86% 0.23 305.8)
XYZxyz(28.2866, 15.7670, 71.3509)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940DF #86DF40
analogous
#4A40DF #9940DF #DF40D5
triadic
#9940DF #DF9940 #40DF99
tetradic
#9940DF #DF4A40 #86DF40 #40D5DF
square
#9940DF #DF4A40 #86DF40 #40D5DF
split-complementary
#9940DF #D5DF40 #40DF4A
monochromatic
#59188D #7B20C1 #9940DF #B574E8 #D1A9F1

Accessibility & contrast

On white

5.06
#9940DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9940DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940DF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940DF#FFFFFF#000000##FFFFFF
##9940DF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE4
Deuteranopia (green-blind)
#006FDC
Tritanopia (blue-blind)
#8C668C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9940df;
/* rgb */ color: rgb(153, 64, 223);
/* oklch */ color: oklch(56.9% 0.230 305.8);
Tailwind
colors: {
  custom: {
    50: '#bc7cea',
    500: '#9940df',
    950: '#000000',
  },
}
SCSS
$custom: #9940df;
$custom-light: #bc7cea;
$custom-dark: #000000;
JSON
{
  "hex": "#9940df",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 273.585,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56862,
    "c": 0.23003,
    "h": 305.8
  },
  "luminance": 0.15767
}

Semantic roles & 50–950 ramp

primary
#9940DF
secondary
#B9DE9D
accent
#EE3A89
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9940DF

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

Preview Lab → · Contrast checker → · Palette generator →

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