#9E38CD#9E38CD

#9E38CD is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.223 H 312.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9E38CD
RGBrgb(158, 56, 205)
HSLhsl(281, 60%, 51%)
HSVhsv(281, 73%, 80%)
CMYKcmyk(22.9%, 72.7%, 0%, 19.6%)
CIE-LABlab(44.95, 64.06, -58.10)
CIE-LCHlch(44.95, 86.48, 317.79°)
OKLaboklab(55.39% 0.1514 -0.1642)
OKLCHoklch(55.39% 0.223 312.7)
XYZxyz(26.5322, 14.5060, 59.1481)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38CD #67CD38
analogous
#5338CD #9E38CD #CD38B1
triadic
#9E38CD #CD9E38 #38CD9E
tetradic
#9E38CD #CD5338 #67CD38 #38B1CD
square
#9E38CD #CD5338 #67CD38 #38B1CD
split-complementary
#9E38CD #B1CD38 #38CD53
monochromatic
#551C6F #7A28A0 #9E38CD #B669D9 #CE9AE6

Accessibility & contrast

On white

5.38
#9E38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9E38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38CD
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38CD#FFFFFF#000000##FFFFFF
##9E38CD1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#276CCA
Tritanopia (blue-blind)
#995980
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9e38cd;
/* rgb */ color: rgb(158, 56, 205);
/* oklch */ color: oklch(55.4% 0.223 312.7);
Tailwind
colors: {
  custom: {
    50: '#bf78dd',
    500: '#9e38cd',
    950: '#000000',
  },
}
SCSS
$custom: #9e38cd;
$custom-light: #bf78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38cd",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 281.074,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5539,
    "c": 0.2233,
    "h": 312.7
  },
  "luminance": 0.14505
}

Semantic roles & 50–950 ramp

primary
#9E38CD
secondary
#A4D18F
accent
#E34577
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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