#9E40C7#9E40C7

#9E40C7 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.8% C 0.208 H 313.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9E40C7
RGBrgb(158, 64, 199)
HSLhsl(282, 55%, 52%)
HSVhsv(282, 68%, 78%)
CMYKcmyk(20.6%, 67.8%, 0%, 22%)
CIE-LABlab(45.72, 59.56, -53.40)
CIE-LCHlch(45.72, 79.99, 318.12°)
OKLaboklab(55.81% 0.1439 -0.1504)
OKLCHoklch(55.81% 0.208 313.7)
XYZxyz(26.2410, 15.0602, 55.5464)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40C7 #69C740
analogous
#5B40C7 #9E40C7 #C740AD
triadic
#9E40C7 #C79E40 #40C79E
tetradic
#9E40C7 #C75B40 #69C740 #40ADC7
square
#9E40C7 #C75B40 #69C740 #40ADC7
split-complementary
#9E40C7 #ADC740 #40C75B
monochromatic
#55206D #7B2E9C #9E40C7 #B66FD5 #CE9FE3

Accessibility & contrast

On white

5.23
#9E40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9E40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40C7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40C7#FFFFFF#000000##FFFFFF
##9E40C71.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#386EC4
Tritanopia (blue-blind)
#9A5B7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9e40c7;
/* rgb */ color: rgb(158, 64, 199);
/* oklch */ color: oklch(55.8% 0.208 313.7);
Tailwind
colors: {
  custom: {
    50: '#be7cd9',
    500: '#9e40c7',
    950: '#000000',
  },
}
SCSS
$custom: #9e40c7;
$custom-light: #be7cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40c7",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 281.778,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55812,
    "c": 0.20815,
    "h": 313.7
  },
  "luminance": 0.15059
}

Semantic roles & 50–950 ramp

primary
#9E40C7
secondary
#A6CF94
accent
#DE4A77
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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