#9B40BF#9B40BF

#9B40BF is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.9% C 0.199 H 314.9°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9B40BF
RGBrgb(155, 64, 191)
HSLhsl(283, 50%, 50%)
HSVhsv(283, 66%, 75%)
CMYKcmyk(18.8%, 66.5%, 0%, 25.1%)
CIE-LABlab(44.80, 57.24, -50.25)
CIE-LCHlch(44.80, 76.17, 318.72°)
OKLaboklab(54.91% 0.1406 -0.1413)
OKLCHoklch(54.91% 0.199 314.9)
XYZxyz(24.7534, 14.3978, 50.7552)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40BF #64BF40
analogous
#5B40BF #9B40BF #BF40A4
triadic
#9B40BF #BF9B40 #40BF9B
tetradic
#9B40BF #BF5B40 #64BF40 #40A4BF
square
#9B40BF #BF5B40 #64BF40 #40A4BF
split-complementary
#9B40BF #A4BF40 #40BF5B
monochromatic
#512163 #763191 #9B40BF #B36ECE #CB9CDE

Accessibility & contrast

On white

5.41
#9B40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9B40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40BF
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40BF#FFFFFF#000000##FFFFFF
##9B40BF1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b40bf;
/* rgb */ color: rgb(155, 64, 191);
/* oklch */ color: oklch(54.9% 0.199 314.9);
Tailwind
colors: {
  custom: {
    50: '#bc7bd3',
    500: '#9b40bf',
    950: '#000000',
  },
}
SCSS
$custom: #9b40bf;
$custom-light: #bc7bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40bf",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 282.992,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.54906,
    "c": 0.19935,
    "h": 314.9
  },
  "luminance": 0.14397
}

Semantic roles & 50–950 ramp

primary
#9B40BF
secondary
#A1CA91
accent
#D94E76
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9B40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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