#9E42DA#9E42DA

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

Color values

HEX#9E42DA
RGBrgb(158, 66, 218)
HSLhsl(276, 67%, 56%)
HSVhsv(276, 70%, 85%)
CMYKcmyk(27.5%, 69.7%, 0%, 14.5%)
CIE-LABlab(47.27, 62.72, -61.81)
CIE-LCHlch(47.27, 88.06, 315.42°)
OKLaboklab(57.32% 0.1398 -0.1751)
OKLCHoklch(57.32% 0.224 308.6)
XYZxyz(28.7011, 16.2280, 67.9364)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42DA #7EDA42
analogous
#5242DA #9E42DA #DA42CA
triadic
#9E42DA #DA9E42 #42DA9E
tetradic
#9E42DA #DA5242 #7EDA42 #42CADA
square
#9E42DA #DA5242 #7EDA42 #42CADA
split-complementary
#9E42DA #CADA42 #42DA52
monochromatic
#5C1A87 #7F24BA #9E42DA #B875E4 #D3A8EE

Accessibility & contrast

On white

4.95
#9E42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#9E42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42DA
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42DA#FFFFFF#000000##FFFFFF
##9E42DA1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDE
Deuteranopia (green-blind)
#1E71D7
Tritanopia (blue-blind)
#95648A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9e42da;
/* rgb */ color: rgb(158, 66, 218);
/* oklch */ color: oklch(57.3% 0.224 308.6);
Tailwind
colors: {
  custom: {
    50: '#bf7ee6',
    500: '#9e42da',
    950: '#000000',
  },
}
SCSS
$custom: #9e42da;
$custom-light: #bf7ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42da",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 276.316,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57321,
    "c": 0.22409,
    "h": 308.6
  },
  "luminance": 0.16227
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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