#9C40BA#9C40BA

#9C40BA is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.7% C 0.195 H 316.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9C40BA
RGBrgb(156, 64, 186)
HSLhsl(285, 49%, 49%)
HSVhsv(285, 66%, 73%)
CMYKcmyk(16.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(44.63, 56.45, -47.59)
CIE-LCHlch(44.63, 73.83, 319.87°)
OKLaboklab(54.72% 0.1421 -0.1335)
OKLCHoklch(54.72% 0.195 316.8)
XYZxyz(24.4053, 14.2808, 47.9158)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40BA #5EBA40
analogous
#5F40BA #9C40BA #BA409B
triadic
#9C40BA #BA9C40 #40BA9C
tetradic
#9C40BA #BA5F40 #5EBA40 #409BBA
square
#9C40BA #BA5F40 #5EBA40 #409BBA
split-complementary
#9C40BA #9BBA40 #40BA5F
monochromatic
#50215F #76308C #9C40BA #B46BCC #CB99DC

Accessibility & contrast

On white

5.45
#9C40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9C40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40BA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40BA#FFFFFF#000000##FFFFFF
##9C40BA1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D64BE
Deuteranopia (green-blind)
#426CB7
Tritanopia (blue-blind)
#9B5678
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9c40ba;
/* rgb */ color: rgb(156, 64, 186);
/* oklch */ color: oklch(54.7% 0.195 316.8);
Tailwind
colors: {
  custom: {
    50: '#bd7bcf',
    500: '#9c40ba',
    950: '#000000',
  },
}
SCSS
$custom: #9c40ba;
$custom-light: #bd7bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40ba",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 285.246,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54718,
    "c": 0.19493,
    "h": 316.8
  },
  "luminance": 0.1428
}

Semantic roles & 50–950 ramp

primary
#9C40BA
secondary
#9CC88E
accent
#D84F71
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9C40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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