#9942D9#9942D9

#9942D9 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.6% C 0.222 H 307.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9942D9
RGBrgb(153, 66, 217)
HSLhsl(275, 67%, 55%)
HSVhsv(275, 70%, 85%)
CMYKcmyk(29.5%, 69.6%, 0%, 14.9%)
CIE-LABlab(46.55, 61.51, -62.44)
CIE-LCHlch(46.55, 87.65, 314.57°)
OKLaboklab(56.65% 0.1334 -0.1771)
OKLCHoklch(56.65% 0.222 307)
XYZxyz(27.6068, 15.6788, 67.2042)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942D9 #82D942
analogous
#4E42D9 #9942D9 #D942CD
triadic
#9942D9 #D99942 #42D999
tetradic
#9942D9 #D94E42 #82D942 #42CDD9
square
#9942D9 #D94E42 #82D942 #42CDD9
split-complementary
#9942D9 #CDD942 #42D94E
monochromatic
#581B86 #7A25B9 #9942D9 #B475E3 #D0A8ED

Accessibility & contrast

On white

5.08
#9942D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9942D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942D9
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942D9#FFFFFF#000000##FFFFFF
##9942D91.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#116FD6
Tritanopia (blue-blind)
#8E6489
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9942d9;
/* rgb */ color: rgb(153, 66, 217);
/* oklch */ color: oklch(56.6% 0.222 307.0);
Tailwind
colors: {
  custom: {
    50: '#bc7de6',
    500: '#9942d9',
    950: '#000000',
  },
}
SCSS
$custom: #9942d9;
$custom-light: #bc7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9942d9",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 274.57,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56646,
    "c": 0.22177,
    "h": 307
  },
  "luminance": 0.15678
}

Semantic roles & 50–950 ramp

primary
#9942D9
secondary
#B7DB9C
accent
#E93E87
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9942D9

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

Preview Lab → · Contrast checker → · Palette generator →

#9942D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva