#9E42EA#9E42EA

#9E42EA is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.5% C 0.240 H 305.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9E42EA
RGBrgb(158, 66, 234)
HSLhsl(273, 80%, 59%)
HSVhsv(273, 72%, 92%)
CMYKcmyk(32.5%, 71.8%, 0%, 8.2%)
CIE-LABlab(48.39, 66.23, -69.07)
CIE-LCHlch(48.39, 95.69, 313.80°)
OKLaboklab(58.47% 0.1373 -0.1965)
OKLCHoklch(58.47% 0.24 305)
XYZxyz(30.8967, 17.1062, 79.5001)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42EA #8EEA42
analogous
#4A42EA #9E42EA #EA42E2
triadic
#9E42EA #EA9E42 #42EA9E
tetradic
#9E42EA #EA4A42 #8EEA42 #42E2EA
square
#9E42EA #EA4A42 #8EEA42 #42E2EA
split-complementary
#9E42EA #E2EA42 #42EA4A
monochromatic
#6012A0 #8018D7 #9E42EA #BA79F0 #D7B0F6

Accessibility & contrast

On white

4.75
#9E42EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#9E42EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42EA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42EA#FFFFFF#000000##FFFFFF
##9E42EA1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0073E7
Tritanopia (blue-blind)
#906A92
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9e42ea;
/* rgb */ color: rgb(158, 66, 234);
/* oklch */ color: oklch(58.5% 0.240 305.0);
Tailwind
colors: {
  custom: {
    50: '#c07ef2',
    500: '#9e42ea',
    950: '#000000',
  },
}
SCSS
$custom: #9e42ea;
$custom-light: #c07ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42ea",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 272.857,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5847,
    "c": 0.23971,
    "h": 305
  },
  "luminance": 0.17106
}

Semantic roles & 50–950 ramp

primary
#9E42EA
secondary
#C1E5A3
accent
#F6318B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9E42EA

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

Preview Lab → · Contrast checker → · Palette generator →

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