#9E38D9#9E38D9

#9E38D9 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.2% C 0.234 H 309.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9E38D9
RGBrgb(158, 56, 217)
HSLhsl(278, 68%, 54%)
HSVhsv(278, 74%, 85%)
CMYKcmyk(27.2%, 74.2%, 0%, 14.9%)
CIE-LABlab(45.78, 66.54, -63.65)
CIE-LCHlch(45.78, 92.08, 316.27°)
OKLaboklab(56.24% 0.1495 -0.1805)
OKLCHoklch(56.24% 0.234 309.6)
XYZxyz(28.0366, 15.1078, 67.0713)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38D9 #73D938
analogous
#4D38D9 #9E38D9 #D938C4
triadic
#9E38D9 #D99E38 #38D99E
tetradic
#9E38D9 #D94D38 #73D938 #38C4D9
square
#9E38D9 #D94D38 #73D938 #38C4D9
split-complementary
#9E38D9 #C4D938 #38D94D
monochromatic
#59187E #7D22B2 #9E38D9 #B76BE3 #D09FED

Accessibility & contrast

On white

5.22
#9E38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9E38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38D9
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38D9#FFFFFF#000000##FFFFFF
##9E38D91.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#056ED6
Tritanopia (blue-blind)
#955E86
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9e38d9;
/* rgb */ color: rgb(158, 56, 217);
/* oklch */ color: oklch(56.2% 0.234 309.6);
Tailwind
colors: {
  custom: {
    50: '#c079e6',
    500: '#9e38d9',
    950: '#000000',
  },
}
SCSS
$custom: #9e38d9;
$custom-light: #c079e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38d9",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 278.012,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56241,
    "c": 0.23434,
    "h": 309.6
  },
  "luminance": 0.15107
}

Semantic roles & 50–950 ramp

primary
#9E38D9
secondary
#ADD994
accent
#EB3D7D
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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