#9942D4#9942D4

#9942D4 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.217 H 308.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9942D4
RGBrgb(153, 66, 212)
HSLhsl(276, 63%, 55%)
HSVhsv(276, 69%, 83%)
CMYKcmyk(27.8%, 68.9%, 0%, 16.9%)
CIE-LABlab(46.21, 60.41, -60.13)
CIE-LCHlch(46.21, 85.24, 315.13°)
OKLaboklab(56.29% 0.1341 -0.1704)
OKLCHoklch(56.29% 0.217 308.2)
XYZxyz(26.9663, 15.4226, 63.8309)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942D4 #7DD442
analogous
#5042D4 #9942D4 #D442C6
triadic
#9942D4 #D49942 #42D499
tetradic
#9942D4 #D45042 #7DD442 #42C6D4
square
#9942D4 #D45042 #7DD442 #42C6D4
split-complementary
#9942D4 #C6D442 #42D450
monochromatic
#571D7F #7928B1 #9942D4 #B474DF #CFA6EB

Accessibility & contrast

On white

5.14
#9942D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9942D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942D4
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942D4#FFFFFF#000000##FFFFFF
##9942D41.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#1F6ED1
Tritanopia (blue-blind)
#906286
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9942d4;
/* rgb */ color: rgb(153, 66, 212);
/* oklch */ color: oklch(56.3% 0.217 308.2);
Tailwind
colors: {
  custom: {
    50: '#bc7de2',
    500: '#9942d4',
    950: '#000000',
  },
}
SCSS
$custom: #9942d4;
$custom-light: #bc7de2;
$custom-dark: #000000;
JSON
{
  "hex": "#9942d4",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 275.753,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56293,
    "c": 0.21679,
    "h": 308.2
  },
  "luminance": 0.15422
}

Semantic roles & 50–950 ramp

primary
#9942D4
secondary
#B3D89A
accent
#E64284
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9942D4

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

Preview Lab → · Contrast checker → · Palette generator →

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