#9E42BB#9E42BB

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

Color values

HEX#9E42BB
RGBrgb(158, 66, 187)
HSLhsl(286, 48%, 50%)
HSVhsv(286, 65%, 73%)
CMYKcmyk(15.5%, 64.7%, 0%, 26.7%)
CIE-LABlab(45.30, 56.23, -47.09)
CIE-LCHlch(45.30, 73.34, 320.05°)
OKLaboklab(55.27% 0.1422 -0.132)
OKLCHoklch(55.27% 0.194 317.1)
XYZxyz(25.0171, 14.7544, 48.5342)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42BB #5FBB42
analogous
#6242BB #9E42BB #BB429C
triadic
#9E42BB #BB9E42 #42BB9E
tetradic
#9E42BB #BB6242 #5FBB42 #429CBB
square
#9E42BB #BB6242 #5FBB42 #429CBB
split-complementary
#9E42BB #9CBB42 #42BB62
monochromatic
#522261 #78328E #9E42BB #B56ECC #CC9CDC

Accessibility & contrast

On white

5.32
#9E42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9E42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42BB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42BB#FFFFFF#000000##FFFFFF
##9E42BB1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1565BF
Deuteranopia (green-blind)
#456EB8
Tritanopia (blue-blind)
#9D5879
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9e42bb;
/* rgb */ color: rgb(158, 66, 187);
/* oklch */ color: oklch(55.3% 0.194 317.1);
Tailwind
colors: {
  custom: {
    50: '#be7dd0',
    500: '#9e42bb',
    950: '#000000',
  },
}
SCSS
$custom: #9e42bb;
$custom-light: #be7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42bb",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 285.62,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55273,
    "c": 0.194,
    "h": 317.1
  },
  "luminance": 0.14753
}

Semantic roles & 50–950 ramp

primary
#9E42BB
secondary
#9EC891
accent
#D75071
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9E42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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