#9C40D5#9C40D5

#9C40D5 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.5% C 0.221 H 309.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9C40D5
RGBrgb(156, 64, 213)
HSLhsl(277, 64%, 54%)
HSVhsv(277, 70%, 84%)
CMYKcmyk(26.8%, 70%, 0%, 16.5%)
CIE-LABlab(46.36, 62.10, -60.43)
CIE-LCHlch(46.36, 86.65, 315.78°)
OKLaboklab(56.51% 0.1399 -0.1711)
OKLCHoklch(56.51% 0.221 309.3)
XYZxyz(27.5515, 15.5393, 64.4859)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40D5 #79D540
analogous
#5240D5 #9C40D5 #D540C3
triadic
#9C40D5 #D59C40 #40D59C
tetradic
#9C40D5 #D55240 #79D540 #40C3D5
square
#9C40D5 #D55240 #79D540 #40C3D5
split-complementary
#9C40D5 #C3D540 #40D552
monochromatic
#591C7F #7C27B1 #9C40D5 #B672E0 #D0A4EB

Accessibility & contrast

On white

5.11
#9C40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9C40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40D5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40D5#FFFFFF#000000##FFFFFF
##9C40D51.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#206FD2
Tritanopia (blue-blind)
#946186
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9c40d5;
/* rgb */ color: rgb(156, 64, 213);
/* oklch */ color: oklch(56.5% 0.221 309.3);
Tailwind
colors: {
  custom: {
    50: '#be7ce3',
    500: '#9c40d5',
    950: '#000000',
  },
}
SCSS
$custom: #9c40d5;
$custom-light: #be7ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40d5",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 277.047,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5651,
    "c": 0.22103,
    "h": 309.3
  },
  "luminance": 0.15539
}

Semantic roles & 50–950 ramp

primary
#9C40D5
secondary
#B1D899
accent
#E74180
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A15
muted
#827C84

Preview Lab

Preview with #9C40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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