#9C40CD#9C40CD

#9C40CD is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.0% C 0.213 H 311.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9C40CD
RGBrgb(156, 64, 205)
HSLhsl(279, 59%, 53%)
HSVhsv(279, 69%, 80%)
CMYKcmyk(23.9%, 68.8%, 0%, 19.6%)
CIE-LABlab(45.83, 60.39, -56.70)
CIE-LCHlch(45.83, 82.83, 316.80°)
OKLaboklab(55.96% 0.1408 -0.1602)
OKLCHoklch(55.96% 0.213 311.3)
XYZxyz(26.5611, 15.1431, 59.2695)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40CD #71CD40
analogous
#5540CD #9C40CD #CD40B7
triadic
#9C40CD #CD9C40 #40CD9C
tetradic
#9C40CD #CD5540 #71CD40 #40B7CD
square
#9C40CD #CD5540 #71CD40 #40B7CD
split-complementary
#9C40CD #B7CD40 #40CD55
monochromatic
#561E74 #7A2BA5 #9C40CD #B571DA #CEA1E6

Accessibility & contrast

On white

5.21
#9C40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9C40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40CD
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40CD#FFFFFF#000000##FFFFFF
##9C40CD1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#2E6ECA
Tritanopia (blue-blind)
#965E82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9c40cd;
/* rgb */ color: rgb(156, 64, 205);
/* oklch */ color: oklch(56.0% 0.213 311.3);
Tailwind
colors: {
  custom: {
    50: '#bd7cdd',
    500: '#9c40cd',
    950: '#000000',
  },
}
SCSS
$custom: #9c40cd;
$custom-light: #bd7cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40cd",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 279.149,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55959,
    "c": 0.21326,
    "h": 311.3
  },
  "luminance": 0.15142
}

Semantic roles & 50–950 ramp

primary
#9C40CD
secondary
#ABD396
accent
#E2467C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9C40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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