#9E38D2#9E38D2

#9E38D2 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.7% C 0.228 H 311.4°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9E38D2
RGBrgb(158, 56, 210)
HSLhsl(280, 63%, 52%)
HSVhsv(280, 73%, 82%)
CMYKcmyk(24.8%, 73.3%, 0%, 17.6%)
CIE-LABlab(45.29, 65.08, -60.43)
CIE-LCHlch(45.29, 88.81, 317.12°)
OKLaboklab(55.74% 0.1506 -0.171)
OKLCHoklch(55.74% 0.228 311.4)
XYZxyz(27.1454, 14.7513, 62.3776)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E38D2 #6CD238
analogous
#5138D2 #9E38D2 #D238B9
triadic
#9E38D2 #D29E38 #38D29E
tetradic
#9E38D2 #D25138 #6CD238 #38B9D2
square
#9E38D2 #D25138 #6CD238 #38B9D2
split-complementary
#9E38D2 #B9D238 #38D251
monochromatic
#571A75 #7B26A7 #9E38D2 #B66ADD #CF9CE9

Accessibility & contrast

On white

5.32
#9E38D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9E38D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E38D2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E38D2#FFFFFF#000000##FFFFFF
##9E38D21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#1E6DCF
Tritanopia (blue-blind)
#975B82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9e38d2;
/* rgb */ color: rgb(158, 56, 210);
/* oklch */ color: oklch(55.7% 0.228 311.4);
Tailwind
colors: {
  custom: {
    50: '#bf78e1',
    500: '#9e38d2',
    950: '#000000',
  },
}
SCSS
$custom: #9e38d2;
$custom-light: #bf78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e38d2",
  "rgb": {
    "r": 158,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 279.74,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55741,
    "c": 0.22789,
    "h": 311.4
  },
  "luminance": 0.14751
}

Semantic roles & 50–950 ramp

primary
#9E38D2
secondary
#A8D591
accent
#E64279
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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