#9C40DA#9C40DA

#9C40DA is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.9% C 0.226 H 308.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9C40DA
RGBrgb(156, 64, 218)
HSLhsl(276, 68%, 55%)
HSVhsv(276, 71%, 85%)
CMYKcmyk(28.4%, 70.6%, 0%, 14.5%)
CIE-LABlab(46.71, 63.18, -62.74)
CIE-LCHlch(46.71, 89.04, 315.20°)
OKLaboklab(56.86% 0.1392 -0.1779)
OKLCHoklch(56.86% 0.226 308)
XYZxyz(28.1960, 15.7971, 67.8798)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40DA #7EDA40
analogous
#4F40DA #9C40DA #DA40CB
triadic
#9C40DA #DA9C40 #40DA9C
tetradic
#9C40DA #DA4F40 #7EDA40 #40CBDA
square
#9C40DA #DA4F40 #7EDA40 #40CBDA
split-complementary
#9C40DA #CBDA40 #40DA4F
monochromatic
#5A1A86 #7D24B9 #9C40DA #B773E4 #D1A7EE

Accessibility & contrast

On white

5.05
#9C40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9C40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40DA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40DA#FFFFFF#000000##FFFFFF
##9C40DA1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDE
Deuteranopia (green-blind)
#1370D7
Tritanopia (blue-blind)
#926389
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9c40da;
/* rgb */ color: rgb(156, 64, 218);
/* oklch */ color: oklch(56.9% 0.226 308.0);
Tailwind
colors: {
  custom: {
    50: '#be7ce6',
    500: '#9c40da',
    950: '#000000',
  },
}
SCSS
$custom: #9c40da;
$custom-light: #be7ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40da",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 275.844,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56863,
    "c": 0.22589,
    "h": 308
  },
  "luminance": 0.15797
}

Semantic roles & 50–950 ramp

primary
#9C40DA
secondary
#B5DB9B
accent
#EA3D83
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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