#9E4EC8#9E4EC8

#9E4EC8 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.6% C 0.190 H 312.2°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9E4EC8
RGBrgb(158, 78, 200)
HSLhsl(279, 53%, 55%)
HSVhsv(279, 61%, 78%)
CMYKcmyk(21%, 61%, 0%, 21.6%)
CIE-LABlab(48.12, 53.31, -50.12)
CIE-LCHlch(48.12, 73.17, 316.76°)
OKLaboklab(57.57% 0.1276 -0.1409)
OKLCHoklch(57.57% 0.19 312.2)
XYZxyz(27.2484, 16.8887, 56.4568)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E4EC8 #78C84E
analogous
#614EC8 #9E4EC8 #C84EB5
triadic
#9E4EC8 #C89E4E #4EC89E
tetradic
#9E4EC8 #C8614E #78C84E #4EB5C8
square
#9E4EC8 #C8614E #78C84E #4EB5C8
split-complementary
#9E4EC8 #B5C84E #4EC861
monochromatic
#5B2577 #7E33A5 #9E4EC8 #B87DD7 #D1ABE5

Accessibility & contrast

On white

4.80
#9E4EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#9E4EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E4EC8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E4EC8#FFFFFF#000000##FFFFFF
##9E4EC81.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6ECC
Deuteranopia (green-blind)
#4574C5
Tritanopia (blue-blind)
#996584
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9e4ec8;
/* rgb */ color: rgb(158, 78, 200);
/* oklch */ color: oklch(57.6% 0.190 312.2);
Tailwind
colors: {
  custom: {
    50: '#be84d9',
    500: '#9e4ec8',
    950: '#000000',
  },
}
SCSS
$custom: #9e4ec8;
$custom-light: #be84d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e4ec8",
  "rgb": {
    "r": 158,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 279.344,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.57565,
    "c": 0.19011,
    "h": 312.2
  },
  "luminance": 0.16888
}

Semantic roles & 50–950 ramp

primary
#9E4EC8
secondary
#B1D39F
accent
#DC4C7D
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9E4EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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