#9942E2#9942E2

#9942E2 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.231 H 304.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9942E2
RGBrgb(153, 66, 226)
HSLhsl(273, 73%, 57%)
HSVhsv(273, 71%, 89%)
CMYKcmyk(32.3%, 70.8%, 0%, 11.4%)
CIE-LABlab(47.18, 63.53, -66.54)
CIE-LCHlch(47.18, 91.99, 313.67°)
OKLaboklab(57.3% 0.1321 -0.1892)
OKLCHoklch(57.3% 0.231 304.9)
XYZxyz(28.8095, 16.1599, 73.5382)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942E2 #8BE242
analogous
#4942E2 #9942E2 #E242DB
triadic
#9942E2 #E29942 #42E299
tetradic
#9942E2 #E24942 #8BE242 #42DBE2
square
#9942E2 #E24942 #8BE242 #42DBE2
split-complementary
#9942E2 #DBE242 #42E249
monochromatic
#5A1793 #7B1FC8 #9942E2 #B677EA #D2ACF2

Accessibility & contrast

On white

4.96
#9942E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#9942E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942E2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942E2#FFFFFF#000000##FFFFFF
##9942E21.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#0070DF
Tritanopia (blue-blind)
#8B688E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9942e2;
/* rgb */ color: rgb(153, 66, 226);
/* oklch */ color: oklch(57.3% 0.231 304.9);
Tailwind
colors: {
  custom: {
    50: '#bd7dec',
    500: '#9942e2',
    950: '#000000',
  },
}
SCSS
$custom: #9942e2;
$custom-light: #bd7dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9942e2",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 272.625,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57296,
    "c": 0.23072,
    "h": 304.9
  },
  "luminance": 0.1616
}

Semantic roles & 50–950 ramp

primary
#9942E2
secondary
#BDE09F
accent
#F0388C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9942E2

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

Preview Lab → · Contrast checker → · Palette generator →

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