#9E42D9#9E42D9

#9E42D9 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.223 H 308.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9E42D9
RGBrgb(158, 66, 217)
HSLhsl(277, 67%, 55%)
HSVhsv(277, 70%, 85%)
CMYKcmyk(27.2%, 69.6%, 0%, 14.9%)
CIE-LABlab(47.20, 62.51, -61.35)
CIE-LCHlch(47.20, 87.58, 315.53°)
OKLaboklab(57.25% 0.1399 -0.1738)
OKLCHoklch(57.25% 0.223 308.8)
XYZxyz(28.5706, 16.1758, 67.2493)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42D9 #7DD942
analogous
#5242D9 #9E42D9 #D942C9
triadic
#9E42D9 #D99E42 #42D99E
tetradic
#9E42D9 #D95242 #7DD942 #42C9D9
square
#9E42D9 #D95242 #7DD942 #42C9D9
split-complementary
#9E42D9 #C9D942 #42D952
monochromatic
#5C1B86 #7F25B9 #9E42D9 #B875E3 #D2A8ED

Accessibility & contrast

On white

4.96
#9E42D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#9E42D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42D9
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42D9#FFFFFF#000000##FFFFFF
##9E42D91.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#2071D6
Tritanopia (blue-blind)
#956489
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9e42d9;
/* rgb */ color: rgb(158, 66, 217);
/* oklch */ color: oklch(57.3% 0.223 308.8);
Tailwind
colors: {
  custom: {
    50: '#bf7ee6',
    500: '#9e42d9',
    950: '#000000',
  },
}
SCSS
$custom: #9e42d9;
$custom-light: #bf7ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42d9",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 276.556,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57251,
    "c": 0.22311,
    "h": 308.8
  },
  "luminance": 0.16175
}

Semantic roles & 50–950 ramp

primary
#9E42D9
secondary
#B5DB9C
accent
#E93E81
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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