#9C40D7#9C40D7

#9C40D7 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.223 H 308.8°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9C40D7
RGBrgb(156, 64, 215)
HSLhsl(277, 65%, 55%)
HSVhsv(277, 70%, 84%)
CMYKcmyk(27.4%, 70.2%, 0%, 15.7%)
CIE-LABlab(46.50, 62.53, -61.36)
CIE-LCHlch(46.50, 87.60, 315.54°)
OKLaboklab(56.65% 0.1396 -0.1739)
OKLCHoklch(56.65% 0.223 308.8)
XYZxyz(27.8069, 15.6415, 65.8310)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40D7 #7BD740
analogous
#5040D7 #9C40D7 #D740C7
triadic
#9C40D7 #D79C40 #40D79C
tetradic
#9C40D7 #D75040 #7BD740 #40C7D7
square
#9C40D7 #D75040 #7BD740 #40C7D7
split-complementary
#9C40D7 #C7D740 #40D750
monochromatic
#591B81 #7C26B4 #9C40D7 #B673E2 #D0A5EC

Accessibility & contrast

On white

5.09
#9C40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#9C40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40D7
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40D7#FFFFFF#000000##FFFFFF
##9C40D71.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#1C6FD4
Tritanopia (blue-blind)
#936287
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9c40d7;
/* rgb */ color: rgb(156, 64, 215);
/* oklch */ color: oklch(56.6% 0.223 308.8);
Tailwind
colors: {
  custom: {
    50: '#be7ce4',
    500: '#9c40d7',
    950: '#000000',
  },
}
SCSS
$custom: #9c40d7;
$custom-light: #be7ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40d7",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 276.556,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5665,
    "c": 0.22298,
    "h": 308.8
  },
  "luminance": 0.15641
}

Semantic roles & 50–950 ramp

primary
#9C40D7
secondary
#B2D99A
accent
#E83F81
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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