#9E38BD#9E38BD

#9E38BD is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.3% C 0.209 H 317.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9E38BD
RGBrgb(158, 56, 189)
HSLhsl(286, 54%, 48%)
HSVhsv(286, 70%, 74%)
CMYKcmyk(16.4%, 70.4%, 0%, 25.9%)
CIE-LABlab(43.91, 60.86, -50.49)
CIE-LCHlch(43.91, 79.07, 320.32°)
OKLaboklab(54.31% 0.1531 -0.1418)
OKLCHoklch(54.31% 0.209 317.2)
XYZxyz(24.6987, 13.7726, 49.4916)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38BD #57BD38
analogous
#5B38BD #9E38BD #BD3899
triadic
#9E38BD #BD9E38 #38BD9E
tetradic
#9E38BD #BD5B38 #57BD38 #3899BD
square
#9E38BD #BD5B38 #57BD38 #3899BD
split-complementary
#9E38BD #99BD38 #38BD5B
monochromatic
#4F1C5F #772A8E #9E38BD #B762D0 #CC91DE

Accessibility & contrast

On white

5.59
#9E38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#9E38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38BD
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38BD#FFFFFF#000000##FFFFFF
##9E38BD1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#3B6BBA
Tritanopia (blue-blind)
#9D5277
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9e38bd;
/* rgb */ color: rgb(158, 56, 189);
/* oklch */ color: oklch(54.3% 0.209 317.2);
Tailwind
colors: {
  custom: {
    50: '#be77d1',
    500: '#9e38bd',
    950: '#000000',
  },
}
SCSS
$custom: #9e38bd;
$custom-light: #be77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38bd",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 286.015,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54314,
    "c": 0.20871,
    "h": 317.2
  },
  "luminance": 0.13772
}

Semantic roles & 50–950 ramp

primary
#9E38BD
secondary
#97C987
accent
#DE4A6D
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9E38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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