#9940DB#9940DB

#9940DB is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.226 H 306.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9940DB
RGBrgb(153, 64, 219)
HSLhsl(274, 68%, 55%)
HSVhsv(274, 71%, 86%)
CMYKcmyk(30.1%, 70.8%, 0%, 14.1%)
CIE-LABlab(46.38, 62.82, -63.85)
CIE-LCHlch(46.38, 89.57, 314.53°)
OKLaboklab(56.57% 0.1351 -0.1813)
OKLCHoklch(56.57% 0.226 306.7)
XYZxyz(27.7537, 15.5539, 68.5442)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940DB #82DB40
analogous
#4C40DB #9940DB #DB40CF
triadic
#9940DB #DB9940 #40DB99
tetradic
#9940DB #DB4C40 #82DB40 #40CFDB
square
#9940DB #DB4C40 #82DB40 #40CFDB
split-complementary
#9940DB #CFDB40 #40DB4C
monochromatic
#581987 #7A23BB #9940DB #B473E5 #D0A7EE

Accessibility & contrast

On white

5.11
#9940DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9940DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940DB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940DB#FFFFFF#000000##FFFFFF
##9940DB1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#8E648A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9940db;
/* rgb */ color: rgb(153, 64, 219);
/* oklch */ color: oklch(56.6% 0.226 306.7);
Tailwind
colors: {
  custom: {
    50: '#bc7ce7',
    500: '#9940db',
    950: '#000000',
  },
}
SCSS
$custom: #9940db;
$custom-light: #bc7ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9940db",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 274.452,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56571,
    "c": 0.22609,
    "h": 306.7
  },
  "luminance": 0.15554
}

Semantic roles & 50–950 ramp

primary
#9940DB
secondary
#B7DC9B
accent
#EB3D87
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9940DB

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

Preview Lab → · Contrast checker → · Palette generator →

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