#9E42D7#9E42D7

#9E42D7 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.1% C 0.221 H 309.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9E42D7
RGBrgb(158, 66, 215)
HSLhsl(277, 65%, 55%)
HSVhsv(277, 69%, 84%)
CMYKcmyk(26.5%, 69.3%, 0%, 15.7%)
CIE-LABlab(47.07, 62.07, -60.42)
CIE-LCHlch(47.07, 86.63, 315.77°)
OKLaboklab(57.11% 0.1402 -0.1711)
OKLCHoklch(57.11% 0.221 309.3)
XYZxyz(28.3121, 16.0724, 65.8876)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42D7 #7BD742
analogous
#5342D7 #9E42D7 #D742C6
triadic
#9E42D7 #D79E42 #42D79E
tetradic
#9E42D7 #D75342 #7BD742 #42C6D7
square
#9E42D7 #D75342 #7BD742 #42C6D7
split-complementary
#9E42D7 #C6D742 #42D753
monochromatic
#5B1C83 #7F26B5 #9E42D7 #B875E2 #D2A7EC

Accessibility & contrast

On white

4.98
#9E42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#9E42D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42D7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42D7#FFFFFF#000000##FFFFFF
##9E42D71.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#2471D4
Tritanopia (blue-blind)
#966388
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9e42d7;
/* rgb */ color: rgb(158, 66, 215);
/* oklch */ color: oklch(57.1% 0.221 309.3);
Tailwind
colors: {
  custom: {
    50: '#bf7ee4',
    500: '#9e42d7',
    950: '#000000',
  },
}
SCSS
$custom: #9e42d7;
$custom-light: #bf7ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42d7",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 277.047,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57112,
    "c": 0.22115,
    "h": 309.3
  },
  "luminance": 0.16072
}

Semantic roles & 50–950 ramp

primary
#9E42D7
secondary
#B3DA9B
accent
#E84080
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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