#9C40BF#9C40BF

#9C40BF is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.0% C 0.200 H 315.3°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#9C40BF
RGBrgb(156, 64, 191)
HSLhsl(283, 50%, 50%)
HSVhsv(283, 66%, 75%)
CMYKcmyk(18.3%, 66.5%, 0%, 25.1%)
CIE-LABlab(44.94, 57.47, -50.02)
CIE-LCHlch(44.94, 76.19, 318.96°)
OKLaboklab(55.04% 0.1419 -0.1406)
OKLCHoklch(55.04% 0.2 315.3)
XYZxyz(24.9462, 14.4972, 50.7643)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40BF #63BF40
analogous
#5D40BF #9C40BF #BF40A2
triadic
#9C40BF #BF9C40 #40BF9C
tetradic
#9C40BF #BF5D40 #63BF40 #40A2BF
square
#9C40BF #BF5D40 #63BF40 #40A2BF
split-complementary
#9C40BF #A2BF40 #40BF5D
monochromatic
#512163 #773191 #9C40BF #B46ECE #CC9CDE

Accessibility & contrast

On white

5.39
#9C40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9C40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40BF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40BF#FFFFFF#000000##FFFFFF
##9C40BF1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#3E6DBC
Tritanopia (blue-blind)
#99587A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9c40bf;
/* rgb */ color: rgb(156, 64, 191);
/* oklch */ color: oklch(55.0% 0.200 315.3);
Tailwind
colors: {
  custom: {
    50: '#bd7bd3',
    500: '#9c40bf',
    950: '#000000',
  },
}
SCSS
$custom: #9c40bf;
$custom-light: #bd7bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40bf",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 283.465,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.55035,
    "c": 0.19972,
    "h": 315.3
  },
  "luminance": 0.14496
}

Semantic roles & 50–950 ramp

primary
#9C40BF
secondary
#A1CA91
accent
#D94E75
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9C40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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