#9942E9#9942E9

#9942E9 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.8% C 0.238 H 303.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#9942E9
RGBrgb(153, 66, 233)
HSLhsl(271, 79%, 59%)
HSVhsv(271, 72%, 91%)
CMYKcmyk(34.3%, 71.7%, 0%, 8.6%)
CIE-LABlab(47.69, 65.11, -69.68)
CIE-LCHlch(47.69, 95.36, 313.06°)
OKLaboklab(57.81% 0.1309 -0.1984)
OKLCHoklch(57.81% 0.238 303.4)
XYZxyz(29.7896, 16.5520, 78.7004)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942E9 #92E942
analogous
#4542E9 #9942E9 #E942E6
triadic
#9942E9 #E99942 #42E999
tetradic
#9942E9 #E94542 #92E942 #42E6E9
square
#9942E9 #E94542 #92E942 #42E6E9
split-complementary
#9942E9 #E6E942 #42E945
monochromatic
#5B129E #7B19D5 #9942E9 #B779EF #D4B0F6

Accessibility & contrast

On white

4.87
#9942E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9942E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942E9
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942E9#FFFFFF#000000##FFFFFF
##9942E91.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEE
Deuteranopia (green-blind)
#0071E6
Tritanopia (blue-blind)
#896B92
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9942e9;
/* rgb */ color: rgb(153, 66, 233);
/* oklch */ color: oklch(57.8% 0.238 303.4);
Tailwind
colors: {
  custom: {
    50: '#bd7ef1',
    500: '#9942e9',
    950: '#000000',
  },
}
SCSS
$custom: #9942e9;
$custom-light: #bd7ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#9942e9",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 233
  },
  "hsl": {
    "h": 271.257,
    "s": 79.147,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57814,
    "c": 0.23768,
    "h": 303.4
  },
  "luminance": 0.16552
}

Semantic roles & 50–950 ramp

primary
#9942E9
secondary
#C2E4A2
accent
#F63290
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9942E9

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

Preview Lab → · Contrast checker → · Palette generator →

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