#9E42DC#9E42DC

#9E42DC is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.5% C 0.226 H 308.1°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9E42DC
RGBrgb(158, 66, 220)
HSLhsl(276, 69%, 56%)
HSVhsv(276, 70%, 86%)
CMYKcmyk(28.2%, 70%, 0%, 13.7%)
CIE-LABlab(47.41, 63.16, -62.73)
CIE-LCHlch(47.41, 89.02, 315.19°)
OKLaboklab(57.46% 0.1395 -0.1778)
OKLCHoklch(57.46% 0.226 308.1)
XYZxyz(28.9644, 16.3333, 69.3231)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42DC #80DC42
analogous
#5142DC #9E42DC #DC42CD
triadic
#9E42DC #DC9E42 #42DC9E
tetradic
#9E42DC #DC5142 #80DC42 #42CDDC
square
#9E42DC #DC5142 #80DC42 #42CDDC
split-complementary
#9E42DC #CDDC42 #42DC51
monochromatic
#5D1A8A #7F23BE #9E42DC #B976E6 #D3A9EF

Accessibility & contrast

On white

4.92
#9E42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#9E42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42DC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42DC#FFFFFF#000000##FFFFFF
##9E42DC1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#1871D9
Tritanopia (blue-blind)
#94658B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9e42dc;
/* rgb */ color: rgb(158, 66, 220);
/* oklch */ color: oklch(57.5% 0.226 308.1);
Tailwind
colors: {
  custom: {
    50: '#c07ee8',
    500: '#9e42dc',
    950: '#000000',
  },
}
SCSS
$custom: #9e42dc;
$custom-light: #c07ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42dc",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 275.844,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57461,
    "c": 0.22604,
    "h": 308.1
  },
  "luminance": 0.16333
}

Semantic roles & 50–950 ramp

primary
#9E42DC
secondary
#B7DD9D
accent
#EC3C83
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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