#9E38BA#9E38BA

#9E38BA is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.206 H 318.1°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9E38BA
RGBrgb(158, 56, 186)
HSLhsl(287, 54%, 47%)
HSVhsv(287, 70%, 73%)
CMYKcmyk(15.1%, 69.9%, 0%, 27.1%)
CIE-LABlab(43.72, 60.27, -49.04)
CIE-LCHlch(43.72, 77.70, 320.87°)
OKLaboklab(54.12% 0.1533 -0.1376)
OKLCHoklch(54.12% 0.206 318.1)
XYZxyz(24.3764, 13.6437, 47.7943)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38BA #54BA38
analogous
#5D38BA #9E38BA #BA3895
triadic
#9E38BA #BA9E38 #38BA9E
tetradic
#9E38BA #BA5D38 #54BA38 #3895BA
square
#9E38BA #BA5D38 #54BA38 #3895BA
split-complementary
#9E38BA #95BA38 #38BA5D
monochromatic
#4E1C5C #762A8B #9E38BA #B760CF #CC8FDD

Accessibility & contrast

On white

5.63
#9E38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9E38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38BA
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38BA#FFFFFF#000000##FFFFFF
##9E38BA1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#3E6BB7
Tritanopia (blue-blind)
#9D5175
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9e38ba;
/* rgb */ color: rgb(158, 56, 186);
/* oklch */ color: oklch(54.1% 0.206 318.1);
Tailwind
colors: {
  custom: {
    50: '#be77cf',
    500: '#9e38ba',
    950: '#000000',
  },
}
SCSS
$custom: #9e38ba;
$custom-light: #be77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38ba",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 287.077,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5412,
    "c": 0.206,
    "h": 318.1
  },
  "luminance": 0.13643
}

Semantic roles & 50–950 ramp

primary
#9E38BA
secondary
#94C886
accent
#DD4B6A
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9E38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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