#9C40CE#9C40CE

#9C40CE is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.0% C 0.214 H 311.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9C40CE
RGBrgb(156, 64, 206)
HSLhsl(279, 59%, 53%)
HSVhsv(279, 69%, 81%)
CMYKcmyk(24.3%, 68.9%, 0%, 19.2%)
CIE-LABlab(45.90, 60.60, -57.17)
CIE-LCHlch(45.90, 83.31, 316.67°)
OKLaboklab(56.03% 0.1407 -0.1615)
OKLCHoklch(56.03% 0.214 311.1)
XYZxyz(26.6822, 15.1916, 59.9072)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40CE #72CE40
analogous
#5540CE #9C40CE #CE40B9
triadic
#9C40CE #CE9C40 #40CE9C
tetradic
#9C40CE #CE5540 #72CE40 #40B9CE
square
#9C40CE #CE5540 #72CE40 #40B9CE
split-complementary
#9C40CE #B9CE40 #40CE55
monochromatic
#571E75 #7B2BA6 #9C40CE #B571DA #CEA1E7

Accessibility & contrast

On white

5.20
#9C40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9C40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40CE
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40CE#FFFFFF#000000##FFFFFF
##9C40CE1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#2C6ECB
Tritanopia (blue-blind)
#965E82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9c40ce;
/* rgb */ color: rgb(156, 64, 206);
/* oklch */ color: oklch(56.0% 0.214 311.1);
Tailwind
colors: {
  custom: {
    50: '#bd7cde',
    500: '#9c40ce',
    950: '#000000',
  },
}
SCSS
$custom: #9c40ce;
$custom-light: #bd7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40ce",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 278.873,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56027,
    "c": 0.21422,
    "h": 311.1
  },
  "luminance": 0.15191
}

Semantic roles & 50–950 ramp

primary
#9C40CE
secondary
#ACD496
accent
#E2457D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9C40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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