#9E38BB#9E38BB

#9E38BB is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.2% C 0.207 H 317.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9E38BB
RGBrgb(158, 56, 187)
HSLhsl(287, 54%, 48%)
HSVhsv(287, 70%, 73%)
CMYKcmyk(15.5%, 70.1%, 0%, 26.7%)
CIE-LABlab(43.78, 60.46, -49.52)
CIE-LCHlch(43.78, 78.16, 320.68°)
OKLaboklab(54.19% 0.1532 -0.139)
OKLCHoklch(54.19% 0.207 317.8)
XYZxyz(24.4831, 13.6864, 48.3562)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38BB #55BB38
analogous
#5D38BB #9E38BB #BB3896
triadic
#9E38BB #BB9E38 #38BB9E
tetradic
#9E38BB #BB5D38 #55BB38 #3896BB
square
#9E38BB #BB5D38 #55BB38 #3896BB
split-complementary
#9E38BB #96BB38 #38BB5D
monochromatic
#4E1C5D #762A8C #9E38BB #B761D0 #CC90DE

Accessibility & contrast

On white

5.62
#9E38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#9E38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38BB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38BB#FFFFFF#000000##FFFFFF
##9E38BB1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#3D6BB8
Tritanopia (blue-blind)
#9D5276
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9e38bb;
/* rgb */ color: rgb(158, 56, 187);
/* oklch */ color: oklch(54.2% 0.207 317.8);
Tailwind
colors: {
  custom: {
    50: '#be77d0',
    500: '#9e38bb',
    950: '#000000',
  },
}
SCSS
$custom: #9e38bb;
$custom-light: #be77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38bb",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 286.718,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54185,
    "c": 0.2069,
    "h": 317.8
  },
  "luminance": 0.13685
}

Semantic roles & 50–950 ramp

primary
#9E38BB
secondary
#95C886
accent
#DD4B6B
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9E38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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