#9E40C2#9E40C2

#9E40C2 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.5% C 0.203 H 315.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9E40C2
RGBrgb(158, 64, 194)
HSLhsl(283, 52%, 51%)
HSVhsv(283, 67%, 76%)
CMYKcmyk(18.6%, 67%, 0%, 23.9%)
CIE-LABlab(45.40, 58.53, -51.00)
CIE-LCHlch(45.40, 77.63, 318.93°)
OKLaboklab(55.49% 0.1442 -0.1434)
OKLCHoklch(55.49% 0.203 315.2)
XYZxyz(25.6700, 14.8318, 52.5391)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40C2 #64C240
analogous
#5D40C2 #9E40C2 #C240A5
triadic
#9E40C2 #C29E40 #40C29E
tetradic
#9E40C2 #C25D40 #64C240 #40A5C2
square
#9E40C2 #C25D40 #64C240 #40A5C2
split-complementary
#9E40C2 #A5C240 #40C25D
monochromatic
#532167 #793095 #9E40C2 #B66ED1 #CD9DE0

Accessibility & contrast

On white

5.29
#9E40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9E40C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40C2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40C2#FFFFFF#000000##FFFFFF
##9E40C21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#3D6EBF
Tritanopia (blue-blind)
#9B597C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9e40c2;
/* rgb */ color: rgb(158, 64, 194);
/* oklch */ color: oklch(55.5% 0.203 315.2);
Tailwind
colors: {
  custom: {
    50: '#be7cd5',
    500: '#9e40c2',
    950: '#000000',
  },
}
SCSS
$custom: #9e40c2;
$custom-light: #be7cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40c2",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 283.385,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55487,
    "c": 0.20336,
    "h": 315.2
  },
  "luminance": 0.14831
}

Semantic roles & 50–950 ramp

primary
#9E40C2
secondary
#A2CC92
accent
#DB4D74
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #9E40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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