#9E42DD#9E42DD

#9E42DD is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.5% C 0.227 H 307.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9E42DD
RGBrgb(158, 66, 221)
HSLhsl(276, 70%, 56%)
HSVhsv(276, 70%, 87%)
CMYKcmyk(28.5%, 70.1%, 0%, 13.3%)
CIE-LABlab(47.48, 63.37, -63.19)
CIE-LCHlch(47.48, 89.49, 315.08°)
OKLaboklab(57.53% 0.1394 -0.1792)
OKLCHoklch(57.53% 0.227 307.9)
XYZxyz(29.0972, 16.3864, 70.0226)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42DD #81DD42
analogous
#5142DD #9E42DD #DD42CF
triadic
#9E42DD #DD9E42 #42DD9E
tetradic
#9E42DD #DD5142 #81DD42 #42CFDD
square
#9E42DD #DD5142 #81DD42 #42CFDD
split-complementary
#9E42DD #CFDD42 #42DD51
monochromatic
#5D198C #8022BF #9E42DD #B976E6 #D3AAF0

Accessibility & contrast

On white

4.91
#9E42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9E42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42DD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42DD#FFFFFF#000000##FFFFFF
##9E42DD1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE1
Deuteranopia (green-blind)
#1571DA
Tritanopia (blue-blind)
#94658B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9e42dd;
/* rgb */ color: rgb(158, 66, 221);
/* oklch */ color: oklch(57.5% 0.227 307.9);
Tailwind
colors: {
  custom: {
    50: '#c07ee8',
    500: '#9e42dd',
    950: '#000000',
  },
}
SCSS
$custom: #9e42dd;
$custom-light: #c07ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42dd",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 275.613,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57532,
    "c": 0.22701,
    "h": 307.9
  },
  "luminance": 0.16386
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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