#9940D4#9940D4

#9940D4 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.219 H 308.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9940D4
RGBrgb(153, 64, 212)
HSLhsl(276, 63%, 54%)
HSVhsv(276, 70%, 83%)
CMYKcmyk(27.8%, 69.8%, 0%, 16.9%)
CIE-LABlab(45.90, 61.28, -60.63)
CIE-LCHlch(45.90, 86.21, 315.30°)
OKLaboklab(56.07% 0.1361 -0.1718)
OKLCHoklch(56.07% 0.219 308.4)
XYZxyz(26.8515, 15.1930, 63.7926)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940D4 #7BD440
analogous
#4F40D4 #9940D4 #D440C5
triadic
#9940D4 #D49940 #40D499
tetradic
#9940D4 #D44F40 #7BD440 #40C5D4
square
#9940D4 #D44F40 #7BD440 #40C5D4
split-complementary
#9940D4 #C5D440 #40D44F
monochromatic
#571C7D #7927AF #9940D4 #B472DF #CEA4EA

Accessibility & contrast

On white

5.20
#9940D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9940D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940D4
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940D4#FFFFFF#000000##FFFFFF
##9940D41.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#1B6ED1
Tritanopia (blue-blind)
#906186
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9940d4;
/* rgb */ color: rgb(153, 64, 212);
/* oklch */ color: oklch(56.1% 0.219 308.4);
Tailwind
colors: {
  custom: {
    50: '#bc7ce2',
    500: '#9940d4',
    950: '#000000',
  },
}
SCSS
$custom: #9940d4;
$custom-light: #bc7ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#9940d4",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 276.081,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56072,
    "c": 0.21921,
    "h": 308.4
  },
  "luminance": 0.15193
}

Semantic roles & 50–950 ramp

primary
#9940D4
secondary
#B2D798
accent
#E64283
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9940D4

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

Preview Lab → · Contrast checker → · Palette generator →

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