#9942E7#9942E7

#9942E7 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.7% C 0.236 H 303.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9942E7
RGBrgb(153, 66, 231)
HSLhsl(272, 77%, 58%)
HSVhsv(272, 71%, 91%)
CMYKcmyk(33.8%, 71.4%, 0%, 9.4%)
CIE-LABlab(47.54, 64.65, -68.78)
CIE-LCHlch(47.54, 94.40, 313.23°)
OKLaboklab(57.67% 0.1312 -0.1958)
OKLCHoklch(57.67% 0.236 303.8)
XYZxyz(29.5056, 16.4383, 77.2043)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942E7 #90E742
analogous
#4642E7 #9942E7 #E742E3
triadic
#9942E7 #E79942 #42E799
tetradic
#9942E7 #E74642 #90E742 #42E3E7
square
#9942E7 #E74642 #90E742 #42E3E7
split-complementary
#9942E7 #E3E742 #42E746
monochromatic
#5B149B #7B1BD1 #9942E7 #B678EE #D4AFF5

Accessibility & contrast

On white

4.90
#9942E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#9942E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942E7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942E7#FFFFFF#000000##FFFFFF
##9942E71.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#8A6A91
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9942e7;
/* rgb */ color: rgb(153, 66, 231);
/* oklch */ color: oklch(57.7% 0.236 303.8);
Tailwind
colors: {
  custom: {
    50: '#bd7ef0',
    500: '#9942e7',
    950: '#000000',
  },
}
SCSS
$custom: #9942e7;
$custom-light: #bd7ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#9942e7",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 271.636,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57665,
    "c": 0.2357,
    "h": 303.8
  },
  "luminance": 0.16438
}

Semantic roles & 50–950 ramp

primary
#9942E7
secondary
#C1E3A2
accent
#F4348F
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9942E7

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

Preview Lab → · Contrast checker → · Palette generator →

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