#9E42BC#9E42BC

#9E42BC is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.195 H 316.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9E42BC
RGBrgb(158, 66, 188)
HSLhsl(285, 48%, 50%)
HSVhsv(285, 65%, 74%)
CMYKcmyk(16%, 64.9%, 0%, 26.3%)
CIE-LABlab(45.36, 56.43, -47.58)
CIE-LCHlch(45.36, 73.81, 319.86°)
OKLaboklab(55.34% 0.1422 -0.1334)
OKLCHoklch(55.34% 0.195 316.8)
XYZxyz(25.1245, 14.7973, 49.0999)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42BC #60BC42
analogous
#6142BC #9E42BC #BC429D
triadic
#9E42BC #BC9E42 #42BC9E
tetradic
#9E42BC #BC6142 #60BC42 #429DBC
square
#9E42BC #BC6142 #60BC42 #429DBC
split-complementary
#9E42BC #9DBC42 #42BC61
monochromatic
#522261 #78328F #9E42BC #B56FCC #CD9CDC

Accessibility & contrast

On white

5.30
#9E42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9E42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42BC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42BC#FFFFFF#000000##FFFFFF
##9E42BC1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1366C0
Deuteranopia (green-blind)
#446EB9
Tritanopia (blue-blind)
#9D5879
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9e42bc;
/* rgb */ color: rgb(158, 66, 188);
/* oklch */ color: oklch(55.3% 0.195 316.8);
Tailwind
colors: {
  custom: {
    50: '#be7dd1',
    500: '#9e42bc',
    950: '#000000',
  },
}
SCSS
$custom: #9e42bc;
$custom-light: #be7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42bc",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 285.246,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55335,
    "c": 0.19496,
    "h": 316.8
  },
  "luminance": 0.14796
}

Semantic roles & 50–950 ramp

primary
#9E42BC
secondary
#9FC991
accent
#D85071
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9E42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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