#9B40CC#9B40CC

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

Color values

HEX#9B40CC
RGBrgb(155, 64, 204)
HSLhsl(279, 58%, 53%)
HSVhsv(279, 69%, 80%)
CMYKcmyk(24%, 68.6%, 0%, 20%)
CIE-LABlab(45.63, 59.97, -56.45)
CIE-LCHlch(45.63, 82.36, 316.73°)
OKLaboklab(55.77% 0.1396 -0.1595)
OKLCHoklch(55.77% 0.212 311.2)
XYZxyz(26.2480, 14.9956, 58.6268)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40CC #71CC40
analogous
#5540CC #9B40CC #CC40B7
triadic
#9B40CC #CC9B40 #40CC9B
tetradic
#9B40CC #CC5540 #71CC40 #40B7CC
square
#9B40CC #CC5540 #71CC40 #40B7CC
split-complementary
#9B40CC #B7CC40 #40CC55
monochromatic
#551F73 #792CA3 #9B40CC #B470D9 #CEA1E6

Accessibility & contrast

On white

5.25
#9B40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9B40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40CC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40CC#FFFFFF#000000##FFFFFF
##9B40CC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b40cc;
/* rgb */ color: rgb(155, 64, 204);
/* oklch */ color: oklch(55.8% 0.212 311.2);
Tailwind
colors: {
  custom: {
    50: '#bd7cdc',
    500: '#9b40cc',
    950: '#000000',
  },
}
SCSS
$custom: #9b40cc;
$custom-light: #bd7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40cc",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 279,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55766,
    "c": 0.21196,
    "h": 311.2
  },
  "luminance": 0.14995
}

Semantic roles & 50–950 ramp

primary
#9B40CC
secondary
#ABD295
accent
#E1477D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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