#9C40E3#9C40E3

#9C40E3 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.5% C 0.235 H 306.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9C40E3
RGBrgb(156, 64, 227)
HSLhsl(274, 74%, 57%)
HSVhsv(274, 72%, 89%)
CMYKcmyk(31.3%, 71.8%, 0%, 11%)
CIE-LABlab(47.34, 65.15, -66.83)
CIE-LCHlch(47.34, 93.33, 314.27°)
OKLaboklab(57.51% 0.1378 -0.1899)
OKLCHoklch(57.51% 0.235 306)
XYZxyz(29.4058, 16.2810, 74.2516)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40E3 #87E340
analogous
#4B40E3 #9C40E3 #E340D9
triadic
#9C40E3 #E39C40 #40E39C
tetradic
#9C40E3 #E34B40 #87E340 #40D9E3
square
#9C40E3 #E34B40 #87E340 #40D9E3
split-complementary
#9C40E3 #D9E340 #40E34B
monochromatic
#5C1693 #7E1DC8 #9C40E3 #B875EB #D3ABF3

Accessibility & contrast

On white

4.93
#9C40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9C40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40E3
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40E3#FFFFFF#000000##FFFFFF
##9C40E31.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#8F678E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9c40e3;
/* rgb */ color: rgb(156, 64, 227);
/* oklch */ color: oklch(57.5% 0.235 306.0);
Tailwind
colors: {
  custom: {
    50: '#bf7ded',
    500: '#9c40e3',
    950: '#000000',
  },
}
SCSS
$custom: #9c40e3;
$custom-light: #bf7ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40e3",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 273.865,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57512,
    "c": 0.23465,
    "h": 306
  },
  "luminance": 0.16281
}

Semantic roles & 50–950 ramp

primary
#9C40E3
secondary
#BBE19E
accent
#F13788
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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