#9540BD#9540BD

#9540BD is a mid, vivid purple. Relative luminance 0.137; OKLCH L 54.0% C 0.195 H 313.0°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#9540BD
RGBrgb(149, 64, 189)
HSLhsl(281, 49%, 50%)
HSVhsv(281, 66%, 74%)
CMYKcmyk(21.2%, 66.1%, 0%, 25.9%)
CIE-LABlab(43.84, 55.47, -50.66)
CIE-LCHlch(43.84, 75.12, 317.60°)
OKLaboklab(54.01% 0.1332 -0.1427)
OKLCHoklch(54.01% 0.195 313)
XYZxyz(23.4115, 13.7311, 49.5514)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540BD #68BD40
analogous
#5740BD #9540BD #BD40A7
triadic
#9540BD #BD9540 #40BD95
tetradic
#9540BD #BD5740 #68BD40 #40A7BD
square
#9540BD #BD5740 #68BD40 #40A7BD
split-complementary
#9540BD #A7BD40 #40BD57
monochromatic
#4D2162 #71318F #9540BD #AF6DCD #C89ADD

Accessibility & contrast

On white

5.61
#9540BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#9540BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540BD
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540BD#FFFFFF#000000##FFFFFF
##9540BD1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C1
Deuteranopia (green-blind)
#376ABA
Tritanopia (blue-blind)
#915979
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9540bd;
/* rgb */ color: rgb(149, 64, 189);
/* oklch */ color: oklch(54.0% 0.195 313.0);
Tailwind
colors: {
  custom: {
    50: '#b87bd1',
    500: '#9540bd',
    950: '#000000',
  },
}
SCSS
$custom: #9540bd;
$custom-light: #b87bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9540bd",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 280.8,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54007,
    "c": 0.19516,
    "h": 313
  },
  "luminance": 0.1373
}

Semantic roles & 50–950 ramp

primary
#9540BD
secondary
#A2C990
accent
#D94F7B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9540BD

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

Preview Lab → · Contrast checker → · Palette generator →

#9540BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva