#9E42E9#9E42E9

#9E42E9 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.4% C 0.239 H 305.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9E42E9
RGBrgb(158, 66, 233)
HSLhsl(273, 79%, 59%)
HSVhsv(273, 72%, 91%)
CMYKcmyk(32.2%, 71.7%, 0%, 8.6%)
CIE-LABlab(48.32, 66.01, -68.62)
CIE-LCHlch(48.32, 95.22, 313.89°)
OKLaboklab(58.4% 0.1375 -0.1952)
OKLCHoklch(58.4% 0.239 305.2)
XYZxyz(30.7535, 17.0489, 78.7456)
Luminance0.1705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42E9 #8DE942
analogous
#4A42E9 #9E42E9 #E942E0
triadic
#9E42E9 #E99E42 #42E99E
tetradic
#9E42E9 #E94A42 #8DE942 #42E0E9
square
#9E42E9 #E94A42 #8DE942 #42E0E9
split-complementary
#9E42E9 #E0E942 #42E94A
monochromatic
#5F129E #8019D5 #9E42E9 #BA79EF #D6B0F6

Accessibility & contrast

On white

4.76
#9E42E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#9E42E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42E9
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42E9#FFFFFF#000000##FFFFFF
##9E42E91.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EE
Deuteranopia (green-blind)
#0073E6
Tritanopia (blue-blind)
#906A92
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9e42e9;
/* rgb */ color: rgb(158, 66, 233);
/* oklch */ color: oklch(58.4% 0.239 305.2);
Tailwind
colors: {
  custom: {
    50: '#c07ef1',
    500: '#9e42e9',
    950: '#000000',
  },
}
SCSS
$custom: #9e42e9;
$custom-light: #c07ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42e9",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 233
  },
  "hsl": {
    "h": 273.054,
    "s": 79.147,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58397,
    "c": 0.23874,
    "h": 305.2
  },
  "luminance": 0.17049
}

Semantic roles & 50–950 ramp

primary
#9E42E9
secondary
#C0E4A2
accent
#F6328A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9E42E9

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

Preview Lab → · Contrast checker → · Palette generator →

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