#9B40BE#9B40BE

#9B40BE is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.8% C 0.198 H 315.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9B40BE
RGBrgb(155, 64, 190)
HSLhsl(283, 50%, 50%)
HSVhsv(283, 66%, 75%)
CMYKcmyk(18.4%, 66.3%, 0%, 25.5%)
CIE-LABlab(44.74, 57.04, -49.77)
CIE-LCHlch(44.74, 75.69, 318.89°)
OKLaboklab(54.84% 0.1407 -0.1399)
OKLCHoklch(54.84% 0.198 315.2)
XYZxyz(24.6437, 14.3539, 50.1777)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40BE #63BE40
analogous
#5C40BE #9B40BE #BE40A2
triadic
#9B40BE #BE9B40 #40BE9B
tetradic
#9B40BE #BE5C40 #63BE40 #40A2BE
square
#9B40BE #BE5C40 #63BE40 #40A2BE
split-complementary
#9B40BE #A2BE40 #40BE5C
monochromatic
#502162 #763190 #9B40BE #B36DCE #CB9BDD

Accessibility & contrast

On white

5.43
#9B40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#9B40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40BE
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40BE#FFFFFF#000000##FFFFFF
##9B40BE1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#3D6CBB
Tritanopia (blue-blind)
#98587A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9b40be;
/* rgb */ color: rgb(155, 64, 190);
/* oklch */ color: oklch(54.8% 0.198 315.2);
Tailwind
colors: {
  custom: {
    50: '#bc7bd2',
    500: '#9b40be',
    950: '#000000',
  },
}
SCSS
$custom: #9b40be;
$custom-light: #bc7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40be",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 283.333,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54841,
    "c": 0.19838,
    "h": 315.2
  },
  "luminance": 0.14353
}

Semantic roles & 50–950 ramp

primary
#9B40BE
secondary
#A0C990
accent
#D94F75
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9B40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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