#9E38EE#9E38EE

#9E38EE is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.8% C 0.254 H 304.9°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#9E38EE
RGBrgb(158, 56, 238)
HSLhsl(274, 84%, 58%)
HSVhsv(274, 76%, 93%)
CMYKcmyk(33.6%, 76.5%, 0%, 6.7%)
CIE-LABlab(47.33, 71.00, -73.06)
CIE-LCHlch(47.33, 101.88, 314.18°)
OKLaboklab(57.81% 0.1451 -0.2081)
OKLCHoklch(57.81% 0.254 304.9)
XYZxyz(30.9438, 16.2707, 82.3827)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38EE #88EE38
analogous
#4338EE #9E38EE #EE38E3
triadic
#9E38EE #EE9E38 #38EE9E
tetradic
#9E38EE #EE4338 #88EE38 #38E3EE
square
#9E38EE #EE4338 #88EE38 #38E3EE
split-complementary
#9E38EE #E3EE38 #38EE43
monochromatic
#5F0E9E #8012D6 #9E38EE #B970F3 #D5A9F8

Accessibility & contrast

On white

4.94
#9E38EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#9E38EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38EE
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38EE#FFFFFF#000000##FFFFFF
##9E38EE1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF3
Deuteranopia (green-blind)
#0070EA
Tritanopia (blue-blind)
#8F6792
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9e38ee;
/* rgb */ color: rgb(158, 56, 238);
/* oklch */ color: oklch(57.8% 0.254 304.9);
Tailwind
colors: {
  custom: {
    50: '#c17af5',
    500: '#9e38ee',
    950: '#000000',
  },
}
SCSS
$custom: #9e38ee;
$custom-light: #c17af5;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38ee",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 238
  },
  "hsl": {
    "h": 273.626,
    "s": 84.259,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57812,
    "c": 0.25373,
    "h": 304.9
  },
  "luminance": 0.1627
}

Semantic roles & 50–950 ramp

primary
#9E38EE
secondary
#BCE69C
accent
#FB2D87
background
#FCF7FF
surface
#F8EEFE
border
#D1C9D6
text
#130A17
muted
#827C85

Preview Lab

Preview with #9E38EE

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

Preview Lab → · Contrast checker → · Palette generator →

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