#9E4CEB#9E4CEB

#9E4CEB is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.7% C 0.229 H 303.8°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#9E4CEB
RGBrgb(158, 76, 235)
HSLhsl(271, 80%, 61%)
HSVhsv(271, 68%, 92%)
CMYKcmyk(32.8%, 67.7%, 0%, 7.8%)
CIE-LABlab(50.02, 62.09, -66.99)
CIE-LCHlch(50.02, 91.34, 312.82°)
OKLaboklab(59.65% 0.1274 -0.1904)
OKLCHoklch(59.65% 0.229 303.8)
XYZxyz(31.6770, 18.4362, 80.4709)
Luminance0.1844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E4CEB #99EB4C
analogous
#4E4CEB #9E4CEB #EB4CE9
triadic
#9E4CEB #EB9E4C #4CEB9E
tetradic
#9E4CEB #EB4E4C #99EB4C #4CE9EB
square
#9E4CEB #EB4E4C #99EB4C #4CE9EB
split-complementary
#9E4CEB #E9EB4C #4CEB4E
monochromatic
#6113AA #8019E1 #9E4CEB #BC83F1 #DABAF7

Accessibility & contrast

On white

4.48
#9E4CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#9E4CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E4CEB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E4CEB#FFFFFF#000000##000000
##9E4CEB1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#0077E8
Tritanopia (blue-blind)
#8F7096
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9e4ceb;
/* rgb */ color: rgb(158, 76, 235);
/* oklch */ color: oklch(59.7% 0.229 303.8);
Tailwind
colors: {
  custom: {
    50: '#c084f2',
    500: '#9e4ceb',
    950: '#000000',
  },
}
SCSS
$custom: #9e4ceb;
$custom-light: #c084f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e4ceb",
  "rgb": {
    "r": 158,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 270.943,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.5965,
    "c": 0.22912,
    "h": 303.8
  },
  "luminance": 0.18436
}

Semantic roles & 50–950 ramp

primary
#9E4CEB
secondary
#C8E7AB
accent
#DC096F
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9E4CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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