#9E38DF#9E38DF

#9E38DF is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.7% C 0.240 H 308.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9E38DF
RGBrgb(158, 56, 223)
HSLhsl(277, 72%, 55%)
HSVhsv(277, 75%, 87%)
CMYKcmyk(29.1%, 74.9%, 0%, 12.5%)
CIE-LABlab(46.21, 67.80, -66.38)
CIE-LCHlch(46.21, 94.88, 315.61°)
OKLaboklab(56.68% 0.1484 -0.1885)
OKLCHoklch(56.68% 0.24 308.2)
XYZxyz(28.8312, 15.4256, 71.2563)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38DF #79DF38
analogous
#4B38DF #9E38DF #DF38CC
triadic
#9E38DF #DF9E38 #38DF9E
tetradic
#9E38DF #DF4B38 #79DF38 #38CCDF
square
#9E38DF #DF4B38 #79DF38 #38CCDF
split-complementary
#9E38DF #CCDF38 #38DF4B
monochromatic
#5B1687 #7E1EBC #9E38DF #B86DE7 #D1A1F0

Accessibility & contrast

On white

5.14
#9E38DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9E38DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38DF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38DF#FFFFFF#000000##FFFFFF
##9E38DF1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE4
Deuteranopia (green-blind)
#006EDC
Tritanopia (blue-blind)
#94618A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9e38df;
/* rgb */ color: rgb(158, 56, 223);
/* oklch */ color: oklch(56.7% 0.240 308.2);
Tailwind
colors: {
  custom: {
    50: '#c079ea',
    500: '#9e38df',
    950: '#000000',
  },
}
SCSS
$custom: #9e38df;
$custom-light: #c079ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38df",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 223
  },
  "hsl": {
    "h": 276.647,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5668,
    "c": 0.23987,
    "h": 308.2
  },
  "luminance": 0.15425
}

Semantic roles & 50–950 ramp

primary
#9E38DF
secondary
#B2DD96
accent
#EF3980
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E38DF

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

Preview Lab → · Contrast checker → · Palette generator →

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