#9C40D2#9C40D2

#9C40D2 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.218 H 310.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9C40D2
RGBrgb(156, 64, 210)
HSLhsl(278, 62%, 54%)
HSVhsv(278, 70%, 82%)
CMYKcmyk(25.7%, 69.5%, 0%, 17.6%)
CIE-LABlab(46.16, 61.45, -59.04)
CIE-LCHlch(46.16, 85.22, 316.15°)
OKLaboklab(56.3% 0.1402 -0.167)
OKLCHoklch(56.3% 0.218 310)
XYZxyz(27.1743, 15.3884, 62.4990)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40D2 #76D240
analogous
#5340D2 #9C40D2 #D240BF
triadic
#9C40D2 #D29C40 #40D29C
tetradic
#9C40D2 #D25340 #76D240 #40BFD2
square
#9C40D2 #D25340 #76D240 #40BFD2
split-complementary
#9C40D2 #BFD240 #40D253
monochromatic
#581D7B #7C29AC #9C40D2 #B672DE #CFA3E9

Accessibility & contrast

On white

5.15
#9C40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9C40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40D2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40D2#FFFFFF#000000##FFFFFF
##9C40D21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#266FCF
Tritanopia (blue-blind)
#946085
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9c40d2;
/* rgb */ color: rgb(156, 64, 210);
/* oklch */ color: oklch(56.3% 0.218 310.0);
Tailwind
colors: {
  custom: {
    50: '#be7ce1',
    500: '#9c40d2',
    950: '#000000',
  },
}
SCSS
$custom: #9c40d2;
$custom-light: #be7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40d2",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 277.808,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56302,
    "c": 0.2181,
    "h": 310
  },
  "luminance": 0.15388
}

Semantic roles & 50–950 ramp

primary
#9C40D2
secondary
#AFD698
accent
#E5437F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9C40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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