#9E42BE#9E42BE

#9E42BE is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.5% C 0.197 H 316.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9E42BE
RGBrgb(158, 66, 190)
HSLhsl(285, 49%, 50%)
HSVhsv(285, 65%, 75%)
CMYKcmyk(16.8%, 65.3%, 0%, 25.5%)
CIE-LABlab(45.48, 56.83, -48.56)
CIE-LCHlch(45.48, 74.75, 319.49°)
OKLaboklab(55.46% 0.1421 -0.1363)
OKLCHoklch(55.46% 0.197 316.2)
XYZxyz(25.3416, 14.8842, 50.2433)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42BE #62BE42
analogous
#6042BE #9E42BE #BE42A0
triadic
#9E42BE #BE9E42 #42BE9E
tetradic
#9E42BE #BE6042 #62BE42 #42A0BE
square
#9E42BE #BE6042 #62BE42 #42A0BE
split-complementary
#9E42BE #A0BE42 #42BE60
monochromatic
#532263 #783291 #9E42BE #B570CE #CD9DDD

Accessibility & contrast

On white

5.28
#9E42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9E42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42BE
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42BE#FFFFFF#000000##FFFFFF
##9E42BE1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D66C2
Deuteranopia (green-blind)
#426EBB
Tritanopia (blue-blind)
#9C597A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9e42be;
/* rgb */ color: rgb(158, 66, 190);
/* oklch */ color: oklch(55.5% 0.197 316.2);
Tailwind
colors: {
  custom: {
    50: '#be7dd2',
    500: '#9e42be',
    950: '#000000',
  },
}
SCSS
$custom: #9e42be;
$custom-light: #be7dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42be",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 284.516,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5546,
    "c": 0.19689,
    "h": 316.2
  },
  "luminance": 0.14883
}

Semantic roles & 50–950 ramp

primary
#9E42BE
secondary
#A0CA92
accent
#D84F73
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9E42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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