#9C40DF#9C40DF

#9C40DF is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.2% C 0.231 H 306.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9C40DF
RGBrgb(156, 64, 223)
HSLhsl(275, 71%, 56%)
HSVhsv(275, 71%, 87%)
CMYKcmyk(30%, 71.3%, 0%, 12.5%)
CIE-LABlab(47.06, 64.27, -65.02)
CIE-LCHlch(47.06, 91.42, 314.67°)
OKLaboklab(57.22% 0.1384 -0.1846)
OKLCHoklch(57.22% 0.231 306.9)
XYZxyz(28.8601, 16.0628, 71.3778)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40DF #83DF40
analogous
#4D40DF #9C40DF #DF40D3
triadic
#9C40DF #DF9C40 #40DF9C
tetradic
#9C40DF #DF4D40 #83DF40 #40D3DF
square
#9C40DF #DF4D40 #83DF40 #40D3DF
split-complementary
#9C40DF #D3DF40 #40DF4D
monochromatic
#5C188D #7E20C1 #9C40DF #B774E8 #D2A9F1

Accessibility & contrast

On white

4.99
#9C40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#9C40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40DF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40DF#FFFFFF#000000##FFFFFF
##9C40DF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE4
Deuteranopia (green-blind)
#0070DC
Tritanopia (blue-blind)
#91658C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9c40df;
/* rgb */ color: rgb(156, 64, 223);
/* oklch */ color: oklch(57.2% 0.231 306.9);
Tailwind
colors: {
  custom: {
    50: '#be7dea',
    500: '#9c40df',
    950: '#000000',
  },
}
SCSS
$custom: #9c40df;
$custom-light: #be7dea;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40df",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 274.717,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57221,
    "c": 0.23075,
    "h": 306.9
  },
  "luminance": 0.16062
}

Semantic roles & 50–950 ramp

primary
#9C40DF
secondary
#B8DE9D
accent
#EE3A86
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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