#9B40BA#9B40BA

#9B40BA is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.6% C 0.195 H 316.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9B40BA
RGBrgb(155, 64, 186)
HSLhsl(285, 49%, 49%)
HSVhsv(285, 66%, 73%)
CMYKcmyk(16.7%, 65.6%, 0%, 27.1%)
CIE-LABlab(44.49, 56.22, -47.82)
CIE-LCHlch(44.49, 73.81, 319.62°)
OKLaboklab(54.59% 0.1408 -0.1342)
OKLCHoklch(54.59% 0.195 316.4)
XYZxyz(24.2125, 14.1814, 47.9067)
Luminance0.1418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40BA #5FBA40
analogous
#5E40BA #9B40BA #BA409C
triadic
#9B40BA #BA9B40 #40BA9B
tetradic
#9B40BA #BA5E40 #5FBA40 #409CBA
square
#9B40BA #BA5E40 #5FBA40 #409CBA
split-complementary
#9B40BA #9CBA40 #40BA5E
monochromatic
#4F215F #75308C #9B40BA #B36BCC #CB99DC

Accessibility & contrast

On white

5.47
#9B40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9B40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40BA
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40BA#FFFFFF#000000##FFFFFF
##9B40BA1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B64BE
Deuteranopia (green-blind)
#416CB7
Tritanopia (blue-blind)
#995778
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9b40ba;
/* rgb */ color: rgb(155, 64, 186);
/* oklch */ color: oklch(54.6% 0.195 316.4);
Tailwind
colors: {
  custom: {
    50: '#bc7bcf',
    500: '#9b40ba',
    950: '#000000',
  },
}
SCSS
$custom: #9b40ba;
$custom-light: #bc7bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40ba",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 284.754,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54587,
    "c": 0.19452,
    "h": 316.4
  },
  "luminance": 0.14181
}

Semantic roles & 50–950 ramp

primary
#9B40BA
secondary
#9DC88E
accent
#D84F72
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9B40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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