#9E42E8#9E42E8

#9E42E8 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.3% C 0.238 H 305.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9E42E8
RGBrgb(158, 66, 232)
HSLhsl(273, 78%, 58%)
HSVhsv(273, 72%, 91%)
CMYKcmyk(31.9%, 71.6%, 0%, 9%)
CIE-LABlab(48.25, 65.79, -68.17)
CIE-LCHlch(48.25, 94.74, 313.98°)
OKLaboklab(58.32% 0.1377 -0.1938)
OKLCHoklch(58.32% 0.238 305.4)
XYZxyz(30.6110, 16.9919, 77.9954)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42E8 #8CE842
analogous
#4B42E8 #9E42E8 #E842DF
triadic
#9E42E8 #E89E42 #42E89E
tetradic
#9E42E8 #E84B42 #8CE842 #42DFE8
square
#9E42E8 #E84B42 #8CE842 #42DFE8
split-complementary
#9E42E8 #DFE842 #42E84B
monochromatic
#5F139D #801AD3 #9E42E8 #BA79EF #D6AFF5

Accessibility & contrast

On white

4.77
#9E42E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#9E42E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42E8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42E8#FFFFFF#000000##FFFFFF
##9E42E81.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#0073E5
Tritanopia (blue-blind)
#906A91
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9e42e8;
/* rgb */ color: rgb(158, 66, 232);
/* oklch */ color: oklch(58.3% 0.238 305.4);
Tailwind
colors: {
  custom: {
    50: '#c07ef0',
    500: '#9e42e8',
    950: '#000000',
  },
}
SCSS
$custom: #9e42e8;
$custom-light: #c07ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42e8",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 232
  },
  "hsl": {
    "h": 273.253,
    "s": 78.302,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58323,
    "c": 0.23776,
    "h": 305.4
  },
  "luminance": 0.16992
}

Semantic roles & 50–950 ramp

primary
#9E42E8
secondary
#BFE4A2
accent
#F53389
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9E42E8

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

Preview Lab → · Contrast checker → · Palette generator →

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