#9E38B2#9E38B2

#9E38B2 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.6% C 0.199 H 320.6°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9E38B2
RGBrgb(158, 56, 178)
HSLhsl(290, 52%, 46%)
HSVhsv(290, 69%, 70%)
CMYKcmyk(11.2%, 68.5%, 0%, 30.2%)
CIE-LABlab(43.23, 58.73, -45.11)
CIE-LCHlch(43.23, 74.06, 322.47°)
OKLaboklab(53.62% 0.1537 -0.1261)
OKLCHoklch(53.62% 0.199 320.6)
XYZxyz(23.5497, 13.3130, 43.4401)
Luminance0.1331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38B2 #4CB238
analogous
#6138B2 #9E38B2 #B23889
triadic
#9E38B2 #B29E38 #38B29E
tetradic
#9E38B2 #B26138 #4CB238 #3889B2
square
#9E38B2 #B26138 #4CB238 #3889B2
split-complementary
#9E38B2 #89B238 #38B261
monochromatic
#4B1B55 #752983 #9E38B2 #B95CCC #CD8ADA

Accessibility & contrast

On white

5.73
#9E38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9E38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38B2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38B2#FFFFFF#000000##FFFFFF
##9E38B21.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085FB6
Deuteranopia (green-blind)
#446AAF
Tritanopia (blue-blind)
#9F4E71
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9e38b2;
/* rgb */ color: rgb(158, 56, 178);
/* oklch */ color: oklch(53.6% 0.199 320.6);
Tailwind
colors: {
  custom: {
    50: '#be77c9',
    500: '#9e38b2',
    950: '#000000',
  },
}
SCSS
$custom: #9e38b2;
$custom-light: #be77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38b2",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 290.164,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53616,
    "c": 0.19882,
    "h": 320.6
  },
  "luminance": 0.13312
}

Semantic roles & 50–950 ramp

primary
#9E38B2
secondary
#8CC581
accent
#DC4C64
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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