#9E40E6#9E40E6

#9E40E6 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 58.0% C 0.238 H 306.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9E40E6
RGBrgb(158, 64, 230)
HSLhsl(274, 77%, 58%)
HSVhsv(274, 72%, 90%)
CMYKcmyk(31.3%, 72.2%, 0%, 9.8%)
CIE-LABlab(47.82, 66.17, -67.75)
CIE-LCHlch(47.82, 94.70, 314.33°)
OKLaboklab(57.97% 0.1399 -0.1926)
OKLCHoklch(57.97% 0.238 306)
XYZxyz(30.2137, 16.6493, 76.4695)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40E6 #88E640
analogous
#4B40E6 #9E40E6 #E640DB
triadic
#9E40E6 #E69E40 #40E69E
tetradic
#9E40E6 #E64B40 #88E640 #40DBE6
square
#9E40E6 #E64B40 #88E640 #40DBE6
split-complementary
#9E40E6 #DBE640 #40E64B
monochromatic
#5F1498 #801BCE #9E40E6 #B976ED #D5ACF4

Accessibility & contrast

On white

4.85
#9E40E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#9E40E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40E6
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40E6#FFFFFF#000000##FFFFFF
##9E40E61.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEB
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#916890
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9e40e6;
/* rgb */ color: rgb(158, 64, 230);
/* oklch */ color: oklch(58.0% 0.238 306.0);
Tailwind
colors: {
  custom: {
    50: '#c07def',
    500: '#9e40e6',
    950: '#000000',
  },
}
SCSS
$custom: #9e40e6;
$custom-light: #c07def;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40e6",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 230
  },
  "hsl": {
    "h": 273.976,
    "s": 76.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57971,
    "c": 0.23803,
    "h": 306
  },
  "luminance": 0.16649
}

Semantic roles & 50–950 ramp

primary
#9E40E6
secondary
#BCE29F
accent
#F33487
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9E40E6

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

Preview Lab → · Contrast checker → · Palette generator →

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