#9C40DE#9C40DE

#9C40DE is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.230 H 307.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9C40DE
RGBrgb(156, 64, 222)
HSLhsl(275, 71%, 56%)
HSVhsv(275, 71%, 87%)
CMYKcmyk(29.7%, 71.2%, 0%, 12.9%)
CIE-LABlab(46.99, 64.05, -64.57)
CIE-LCHlch(46.99, 90.95, 314.77°)
OKLaboklab(57.15% 0.1386 -0.1833)
OKLCHoklch(57.15% 0.23 307.1)
XYZxyz(28.7257, 16.0090, 70.6698)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40DE #82DE40
analogous
#4D40DE #9C40DE #DE40D1
triadic
#9C40DE #DE9C40 #40DE9C
tetradic
#9C40DE #DE4D40 #82DE40 #40D1DE
square
#9C40DE #DE4D40 #82DE40 #40D1DE
split-complementary
#9C40DE #D1DE40 #40DE4D
monochromatic
#5B188B #7D21C0 #9C40DE #B774E7 #D2A8F0

Accessibility & contrast

On white

5.00
#9C40DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#9C40DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40DE
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40DE#FFFFFF#000000##FFFFFF
##9C40DE1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE3
Deuteranopia (green-blind)
#0070DB
Tritanopia (blue-blind)
#91658B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9c40de;
/* rgb */ color: rgb(156, 64, 222);
/* oklch */ color: oklch(57.1% 0.230 307.1);
Tailwind
colors: {
  custom: {
    50: '#be7de9',
    500: '#9c40de',
    950: '#000000',
  },
}
SCSS
$custom: #9c40de;
$custom-light: #be7de9;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40de",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 274.937,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57149,
    "c": 0.22979,
    "h": 307.1
  },
  "luminance": 0.16009
}

Semantic roles & 50–950 ramp

primary
#9C40DE
secondary
#B8DE9C
accent
#ED3A85
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C40DE

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

Preview Lab → · Contrast checker → · Palette generator →

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