#9E40E3#9E40E3

#9E40E3 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.8% C 0.235 H 306.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9E40E3
RGBrgb(158, 64, 227)
HSLhsl(275, 74%, 57%)
HSVhsv(275, 72%, 89%)
CMYKcmyk(30.4%, 71.8%, 0%, 11%)
CIE-LABlab(47.60, 65.52, -66.40)
CIE-LCHlch(47.60, 93.28, 314.62°)
OKLaboklab(57.75% 0.1404 -0.1886)
OKLCHoklch(57.75% 0.235 306.7)
XYZxyz(29.7961, 16.4823, 74.2699)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40E3 #85E340
analogous
#4D40E3 #9E40E3 #E340D7
triadic
#9E40E3 #E39E40 #40E39E
tetradic
#9E40E3 #E34D40 #85E340 #40D7E3
square
#9E40E3 #E34D40 #85E340 #40D7E3
split-complementary
#9E40E3 #D7E340 #40E34D
monochromatic
#5E1693 #801DC8 #9E40E3 #B975EB #D4ABF3

Accessibility & contrast

On white

4.89
#9E40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#9E40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40E3
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40E3#FFFFFF#000000##FFFFFF
##9E40E31.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#92678E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9e40e3;
/* rgb */ color: rgb(158, 64, 227);
/* oklch */ color: oklch(57.8% 0.235 306.7);
Tailwind
colors: {
  custom: {
    50: '#c07ded',
    500: '#9e40e3',
    950: '#000000',
  },
}
SCSS
$custom: #9e40e3;
$custom-light: #c07ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40e3",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 274.601,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57752,
    "c": 0.23512,
    "h": 306.7
  },
  "luminance": 0.16482
}

Semantic roles & 50–950 ramp

primary
#9E40E3
secondary
#BAE19E
accent
#F13786
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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