#9C40CB#9C40CB

#9C40CB is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.211 H 311.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9C40CB
RGBrgb(156, 64, 203)
HSLhsl(280, 57%, 52%)
HSVhsv(280, 68%, 80%)
CMYKcmyk(23.2%, 68.5%, 0%, 20.4%)
CIE-LABlab(45.70, 59.96, -55.75)
CIE-LCHlch(45.70, 81.88, 317.08°)
OKLaboklab(55.82% 0.141 -0.1574)
OKLCHoklch(55.82% 0.211 311.9)
XYZxyz(26.3212, 15.0472, 58.0062)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40CB #6FCB40
analogous
#5640CB #9C40CB #CB40B5
triadic
#9C40CB #CB9C40 #40CB9C
tetradic
#9C40CB #CB5640 #6FCB40 #40B5CB
square
#9C40CB #CB5640 #6FCB40 #40B5CB
split-complementary
#9C40CB #B5CB40 #40CB56
monochromatic
#561F72 #7A2CA2 #9C40CB #B570D8 #CEA0E5

Accessibility & contrast

On white

5.24
#9C40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9C40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40CB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40CB#FFFFFF#000000##FFFFFF
##9C40CB1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#306EC8
Tritanopia (blue-blind)
#965D81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9c40cb;
/* rgb */ color: rgb(156, 64, 203);
/* oklch */ color: oklch(55.8% 0.211 311.9);
Tailwind
colors: {
  custom: {
    50: '#bd7cdc',
    500: '#9c40cb',
    950: '#000000',
  },
}
SCSS
$custom: #9c40cb;
$custom-light: #bd7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40cb",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 279.712,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55824,
    "c": 0.21131,
    "h": 311.9
  },
  "luminance": 0.15047
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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