#9E38C6#9E38C6

#9E38C6 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.217 H 314.6°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9E38C6
RGBrgb(158, 56, 198)
HSLhsl(283, 56%, 50%)
HSVhsv(283, 72%, 78%)
CMYKcmyk(20.2%, 71.7%, 0%, 22.4%)
CIE-LABlab(44.48, 62.64, -54.80)
CIE-LCHlch(44.48, 83.23, 318.82°)
OKLaboklab(54.91% 0.1522 -0.1545)
OKLCHoklch(54.91% 0.217 314.6)
XYZxyz(25.7061, 14.1756, 54.7972)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38C6 #60C638
analogous
#5738C6 #9E38C6 #C638A7
triadic
#9E38C6 #C69E38 #38C69E
tetradic
#9E38C6 #C65738 #60C638 #38A7C6
square
#9E38C6 #C65738 #60C638 #38A7C6
split-complementary
#9E38C6 #A7C638 #38C657
monochromatic
#521D67 #782B96 #9E38C6 #B567D4 #CD97E2

Accessibility & contrast

On white

5.48
#9E38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9E38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38C6
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38C6#FFFFFF#000000##FFFFFF
##9E38C61.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#316CC3
Tritanopia (blue-blind)
#9A567C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9e38c6;
/* rgb */ color: rgb(158, 56, 198);
/* oklch */ color: oklch(54.9% 0.217 314.6);
Tailwind
colors: {
  custom: {
    50: '#bf78d8',
    500: '#9e38c6',
    950: '#000000',
  },
}
SCSS
$custom: #9e38c6;
$custom-light: #bf78d8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38c6",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 283.099,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54911,
    "c": 0.21689,
    "h": 314.6
  },
  "luminance": 0.14175
}

Semantic roles & 50–950 ramp

primary
#9E38C6
secondary
#9FCD8D
accent
#DF4973
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130915
muted
#827B83

Preview Lab

Preview with #9E38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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