#9C40D4#9C40D4

#9C40D4 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.4% C 0.220 H 309.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9C40D4
RGBrgb(156, 64, 212)
HSLhsl(277, 63%, 54%)
HSVhsv(277, 70%, 83%)
CMYKcmyk(26.4%, 69.8%, 0%, 16.9%)
CIE-LABlab(46.30, 61.88, -59.97)
CIE-LCHlch(46.30, 86.17, 315.90°)
OKLaboklab(56.44% 0.14 -0.1698)
OKLCHoklch(56.44% 0.22 309.5)
XYZxyz(27.4250, 15.4887, 63.8195)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40D4 #78D440
analogous
#5240D4 #9C40D4 #D440C2
triadic
#9C40D4 #D49C40 #40D49C
tetradic
#9C40D4 #D45240 #78D440 #40C2D4
square
#9C40D4 #D45240 #78D440 #40C2D4
split-complementary
#9C40D4 #C2D440 #40D452
monochromatic
#591C7D #7C27AF #9C40D4 #B672DF #D0A4EA

Accessibility & contrast

On white

5.12
#9C40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9C40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40D4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40D4#FFFFFF#000000##FFFFFF
##9C40D41.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#226FD1
Tritanopia (blue-blind)
#946186
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9c40d4;
/* rgb */ color: rgb(156, 64, 212);
/* oklch */ color: oklch(56.4% 0.220 309.5);
Tailwind
colors: {
  custom: {
    50: '#be7ce2',
    500: '#9c40d4',
    950: '#000000',
  },
}
SCSS
$custom: #9c40d4;
$custom-light: #be7ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40d4",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 277.297,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5644,
    "c": 0.22006,
    "h": 309.5
  },
  "luminance": 0.15488
}

Semantic roles & 50–950 ramp

primary
#9C40D4
secondary
#B0D798
accent
#E64280
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9C40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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