#9C40DC#9C40DC

#9C40DC is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 57.0% C 0.228 H 307.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9C40DC
RGBrgb(156, 64, 220)
HSLhsl(275, 69%, 56%)
HSVhsv(275, 71%, 86%)
CMYKcmyk(29.1%, 70.9%, 0%, 13.7%)
CIE-LABlab(46.85, 63.61, -63.65)
CIE-LCHlch(46.85, 89.99, 314.98°)
OKLaboklab(57.01% 0.1389 -0.1806)
OKLCHoklch(57.01% 0.228 307.6)
XYZxyz(28.4592, 15.9024, 69.2665)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40DC #80DC40
analogous
#4E40DC #9C40DC #DC40CE
triadic
#9C40DC #DC9C40 #40DC9C
tetradic
#9C40DC #DC4E40 #80DC40 #40CEDC
square
#9C40DC #DC4E40 #80DC40 #40CEDC
split-complementary
#9C40DC #CEDC40 #40DC4E
monochromatic
#5B1989 #7D23BC #9C40DC #B774E5 #D2A7EF

Accessibility & contrast

On white

5.02
#9C40DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9C40DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40DC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40DC#FFFFFF#000000##FFFFFF
##9C40DC1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#0A70D9
Tritanopia (blue-blind)
#92648A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9c40dc;
/* rgb */ color: rgb(156, 64, 220);
/* oklch */ color: oklch(57.0% 0.228 307.6);
Tailwind
colors: {
  custom: {
    50: '#be7de8',
    500: '#9c40dc',
    950: '#000000',
  },
}
SCSS
$custom: #9c40dc;
$custom-light: #be7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40dc",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 275.385,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57005,
    "c": 0.22783,
    "h": 307.6
  },
  "luminance": 0.15902
}

Semantic roles & 50–950 ramp

primary
#9C40DC
secondary
#B6DC9B
accent
#EC3C84
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C40DC

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

Preview Lab → · Contrast checker → · Palette generator →

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