#9E42CC#9E42CC

#9E42CC is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.210 H 312.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9E42CC
RGBrgb(158, 66, 204)
HSLhsl(280, 58%, 53%)
HSVhsv(280, 68%, 80%)
CMYKcmyk(22.5%, 67.6%, 0%, 20%)
CIE-LABlab(46.35, 59.73, -55.28)
CIE-LCHlch(46.35, 81.38, 317.22°)
OKLaboklab(56.36% 0.1413 -0.1559)
OKLCHoklch(56.36% 0.21 312.2)
XYZxyz(26.9459, 15.5259, 58.6924)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42CC #70CC42
analogous
#5942CC #9E42CC #CC42B5
triadic
#9E42CC #CC9E42 #42CC9E
tetradic
#9E42CC #CC5942 #70CC42 #42B5CC
square
#9E42CC #CC5942 #70CC42 #42B5CC
split-complementary
#9E42CC #B5CC42 #42CC59
monochromatic
#581F74 #7C2CA4 #9E42CC #B772D9 #CFA2E6

Accessibility & contrast

On white

5.12
#9E42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9E42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42CC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42CC#FFFFFF#000000##FFFFFF
##9E42CC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#3470C9
Tritanopia (blue-blind)
#995E82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9e42cc;
/* rgb */ color: rgb(158, 66, 204);
/* oklch */ color: oklch(56.4% 0.210 312.2);
Tailwind
colors: {
  custom: {
    50: '#bf7ddc',
    500: '#9e42cc',
    950: '#000000',
  },
}
SCSS
$custom: #9e42cc;
$custom-light: #bf7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42cc",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 280,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56365,
    "c": 0.21044,
    "h": 312.2
  },
  "luminance": 0.15525
}

Semantic roles & 50–950 ramp

primary
#9E42CC
secondary
#ABD397
accent
#E1477A
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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