#9C40CC#9C40CC

#9C40CC is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.212 H 311.6°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9C40CC
RGBrgb(156, 64, 204)
HSLhsl(279, 58%, 53%)
HSVhsv(279, 69%, 80%)
CMYKcmyk(23.5%, 68.6%, 0%, 20%)
CIE-LABlab(45.76, 60.17, -56.23)
CIE-LCHlch(45.76, 82.36, 316.94°)
OKLaboklab(55.89% 0.1409 -0.1588)
OKLCHoklch(55.89% 0.212 311.6)
XYZxyz(26.4408, 15.0950, 58.6358)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40CC #70CC40
analogous
#5640CC #9C40CC #CC40B6
triadic
#9C40CC #CC9C40 #40CC9C
tetradic
#9C40CC #CC5640 #70CC40 #40B6CC
square
#9C40CC #CC5640 #70CC40 #40B6CC
split-complementary
#9C40CC #B6CC40 #40CC56
monochromatic
#561F73 #7A2CA3 #9C40CC #B570D9 #CEA1E6

Accessibility & contrast

On white

5.23
#9C40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9C40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40CC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40CC#FFFFFF#000000##FFFFFF
##9C40CC1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#2F6EC9
Tritanopia (blue-blind)
#965E81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9c40cc;
/* rgb */ color: rgb(156, 64, 204);
/* oklch */ color: oklch(55.9% 0.212 311.6);
Tailwind
colors: {
  custom: {
    50: '#bd7cdc',
    500: '#9c40cc',
    950: '#000000',
  },
}
SCSS
$custom: #9c40cc;
$custom-light: #bd7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40cc",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 279.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55891,
    "c": 0.21229,
    "h": 311.6
  },
  "luminance": 0.15094
}

Semantic roles & 50–950 ramp

primary
#9C40CC
secondary
#AAD295
accent
#E1477C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9C40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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