#9E42C8#9E42C8

#9E42C8 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.207 H 313.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9E42C8
RGBrgb(158, 66, 200)
HSLhsl(281, 55%, 52%)
HSVhsv(281, 67%, 78%)
CMYKcmyk(21%, 67%, 0%, 21.6%)
CIE-LABlab(46.09, 58.89, -53.38)
CIE-LCHlch(46.09, 79.48, 317.81°)
OKLaboklab(56.1% 0.1416 -0.1504)
OKLCHoklch(56.1% 0.207 313.3)
XYZxyz(26.4723, 15.3364, 56.1981)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42C8 #6CC842
analogous
#5B42C8 #9E42C8 #C842AF
triadic
#9E42C8 #C89E42 #42C89E
tetradic
#9E42C8 #C85B42 #6CC842 #42AFC8
square
#9E42C8 #C85B42 #6CC842 #42AFC8
split-complementary
#9E42C8 #AFC842 #42C85B
monochromatic
#57206F #7B2E9F #9E42C8 #B671D6 #CFA1E4

Accessibility & contrast

On white

5.16
#9E42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9E42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42C8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42C8#FFFFFF#000000##FFFFFF
##9E42C81.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#396FC5
Tritanopia (blue-blind)
#9A5D80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9e42c8;
/* rgb */ color: rgb(158, 66, 200);
/* oklch */ color: oklch(56.1% 0.207 313.3);
Tailwind
colors: {
  custom: {
    50: '#be7dd9',
    500: '#9e42c8',
    950: '#000000',
  },
}
SCSS
$custom: #9e42c8;
$custom-light: #be7dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42c8",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 281.194,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.56101,
    "c": 0.20655,
    "h": 313.3
  },
  "luminance": 0.15336
}

Semantic roles & 50–950 ramp

primary
#9E42C8
secondary
#A8D096
accent
#DE4A78
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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