#9E38D7#9E38D7

#9E38D7 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 56.1% C 0.232 H 310.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9E38D7
RGBrgb(158, 56, 215)
HSLhsl(278, 67%, 53%)
HSVhsv(278, 74%, 84%)
CMYKcmyk(26.5%, 74%, 0%, 15.7%)
CIE-LABlab(45.64, 66.12, -62.74)
CIE-LCHlch(45.64, 91.15, 316.50°)
OKLaboklab(56.1% 0.1498 -0.1778)
OKLCHoklch(56.1% 0.232 310.1)
XYZxyz(27.7781, 15.0043, 65.7096)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38D7 #71D738
analogous
#4F38D7 #9E38D7 #D738C0
triadic
#9E38D7 #D79E38 #38D79E
tetradic
#9E38D7 #D74F38 #71D738 #38C0D7
square
#9E38D7 #D74F38 #71D738 #38C0D7
split-complementary
#9E38D7 #C0D738 #38D74F
monochromatic
#58197C #7D23AF #9E38D7 #B76BE1 #D09EEB

Accessibility & contrast

On white

5.25
#9E38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9E38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38D7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38D7#FFFFFF#000000##FFFFFF
##9E38D71.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DB
Deuteranopia (green-blind)
#0F6ED4
Tritanopia (blue-blind)
#965D85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9e38d7;
/* rgb */ color: rgb(158, 56, 215);
/* oklch */ color: oklch(56.1% 0.232 310.1);
Tailwind
colors: {
  custom: {
    50: '#c079e4',
    500: '#9e38d7',
    950: '#000000',
  },
}
SCSS
$custom: #9e38d7;
$custom-light: #c079e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38d7",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 278.491,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56097,
    "c": 0.23249,
    "h": 310.1
  },
  "luminance": 0.15004
}

Semantic roles & 50–950 ramp

primary
#9E38D7
secondary
#ACD893
accent
#E93E7C
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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