#9E42CD#9E42CD

#9E42CD is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.4% C 0.211 H 311.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9E42CD
RGBrgb(158, 66, 205)
HSLhsl(280, 58%, 53%)
HSVhsv(280, 68%, 80%)
CMYKcmyk(22.9%, 67.8%, 0%, 19.6%)
CIE-LABlab(46.41, 59.94, -55.75)
CIE-LCHlch(46.41, 81.86, 317.08°)
OKLaboklab(56.43% 0.1412 -0.1573)
OKLCHoklch(56.43% 0.211 311.9)
XYZxyz(27.0662, 15.5740, 59.3261)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E42CD #71CD42
analogous
#5842CD #9E42CD #CD42B7
triadic
#9E42CD #CD9E42 #42CD9E
tetradic
#9E42CD #CD5842 #71CD42 #42B7CD
square
#9E42CD #CD5842 #71CD42 #42B7CD
split-complementary
#9E42CD #B7CD42 #42CD58
monochromatic
#581F76 #7D2CA6 #9E42CD #B772DA #D0A3E7

Accessibility & contrast

On white

5.10
#9E42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9E42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E42CD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E42CD#FFFFFF#000000##FFFFFF
##9E42CD1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#3370CA
Tritanopia (blue-blind)
#985F82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9e42cd;
/* rgb */ color: rgb(158, 66, 205);
/* oklch */ color: oklch(56.4% 0.211 311.9);
Tailwind
colors: {
  custom: {
    50: '#bf7ddd',
    500: '#9e42cd',
    950: '#000000',
  },
}
SCSS
$custom: #9e42cd;
$custom-light: #bf7ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e42cd",
  "rgb": {
    "r": 158,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 279.712,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56431,
    "c": 0.21141,
    "h": 311.9
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

primary
#9E42CD
secondary
#ACD397
accent
#E1467B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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