#9E38E1#9E38E1

#9E38E1 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.8% C 0.242 H 307.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9E38E1
RGBrgb(158, 56, 225)
HSLhsl(276, 74%, 55%)
HSVhsv(276, 75%, 88%)
CMYKcmyk(29.8%, 75.1%, 0%, 11.8%)
CIE-LABlab(46.36, 68.22, -67.28)
CIE-LCHlch(46.36, 95.82, 315.40°)
OKLaboklab(56.83% 0.148 -0.1911)
OKLCHoklch(56.83% 0.242 307.7)
XYZxyz(29.1025, 15.5341, 72.6848)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38E1 #7BE138
analogous
#4938E1 #9E38E1 #E138CF
triadic
#9E38E1 #E19E38 #38E19E
tetradic
#9E38E1 #E14938 #7BE138 #38CFE1
square
#9E38E1 #E14938 #7BE138 #38CFE1
split-complementary
#9E38E1 #CFE138 #38E149
monochromatic
#5B158A #7F1DBF #9E38E1 #B86DE9 #D2A2F1

Accessibility & contrast

On white

5.11
#9E38E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9E38E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38E1
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38E1#FFFFFF#000000##FFFFFF
##9E38E11.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#006FDE
Tritanopia (blue-blind)
#93628B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9e38e1;
/* rgb */ color: rgb(158, 56, 225);
/* oklch */ color: oklch(56.8% 0.242 307.7);
Tailwind
colors: {
  custom: {
    50: '#c079eb',
    500: '#9e38e1',
    950: '#000000',
  },
}
SCSS
$custom: #9e38e1;
$custom-light: #c079eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38e1",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 225
  },
  "hsl": {
    "h": 276.213,
    "s": 73.799,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56828,
    "c": 0.24172,
    "h": 307.7
  },
  "luminance": 0.15534
}

Semantic roles & 50–950 ramp

primary
#9E38E1
secondary
#B3DE97
accent
#F03781
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E38E1

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

Preview Lab → · Contrast checker → · Palette generator →

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