#9E42EB#9E42EB

#9E42EB is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.5% C 0.241 H 304.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9E42EB
RGBrgb(158, 66, 235)
HSLhsl(273, 81%, 59%)
HSVhsv(273, 72%, 92%)
CMYKcmyk(32.8%, 71.9%, 0%, 7.8%)
CIE-LABlab(48.47, 66.45, -69.52)
CIE-LCHlch(48.47, 96.17, 313.71°)
OKLaboklab(58.54% 0.1372 -0.1978)
OKLCHoklch(58.54% 0.241 304.7)
XYZxyz(31.0408, 17.1638, 80.2588)
Luminance0.1716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42EB #8FEB42
analogous
#4A42EB #9E42EB #EB42E3
triadic
#9E42EB #EB9E42 #42EB9E
tetradic
#9E42EB #EB4A42 #8FEB42 #42E3EB
square
#9E42EB #EB4A42 #8FEB42 #42E3EB
split-complementary
#9E42EB #E3EB42 #42EB4A
monochromatic
#6011A2 #8117D9 #9E42EB #BA79F1 #D7B1F7

Accessibility & contrast

On white

4.74
#9E42EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9E42EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42EB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42EB#FFFFFF#000000##FFFFFF
##9E42EB1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#8F6B93
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9e42eb;
/* rgb */ color: rgb(158, 66, 235);
/* oklch */ color: oklch(58.5% 0.241 304.7);
Tailwind
colors: {
  custom: {
    50: '#c17ef2',
    500: '#9e42eb',
    950: '#000000',
  },
}
SCSS
$custom: #9e42eb;
$custom-light: #c17ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42eb",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 272.663,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58544,
    "c": 0.24069,
    "h": 304.7
  },
  "luminance": 0.17164
}

Semantic roles & 50–950 ramp

primary
#9E42EB
secondary
#C1E6A3
accent
#F7318B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9E42EB

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

Preview Lab → · Contrast checker → · Palette generator →

#9E42EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva