#9540BB#9540BB

#9540BB is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.9% C 0.193 H 313.6°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9540BB
RGBrgb(149, 64, 187)
HSLhsl(281, 49%, 49%)
HSVhsv(281, 66%, 73%)
CMYKcmyk(20.3%, 65.8%, 0%, 26.7%)
CIE-LABlab(43.72, 55.05, -49.69)
CIE-LCHlch(43.72, 74.16, 317.93°)
OKLaboklab(53.88% 0.1333 -0.1398)
OKLCHoklch(53.88% 0.193 313.6)
XYZxyz(23.1959, 13.6449, 48.4159)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540BB #66BB40
analogous
#5740BB #9540BB #BB40A4
triadic
#9540BB #BB9540 #40BB95
tetradic
#9540BB #BB5740 #66BB40 #40A4BB
square
#9540BB #BB5740 #66BB40 #40A4BB
split-complementary
#9540BB #A4BB40 #40BB57
monochromatic
#4C2160 #71308D #9540BB #AF6CCD #C799DC

Accessibility & contrast

On white

5.63
#9540BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9540BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540BB
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540BB#FFFFFF#000000##FFFFFF
##9540BB1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#3969B8
Tritanopia (blue-blind)
#915878
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9540bb;
/* rgb */ color: rgb(149, 64, 187);
/* oklch */ color: oklch(53.9% 0.193 313.6);
Tailwind
colors: {
  custom: {
    50: '#b87bd0',
    500: '#9540bb',
    950: '#000000',
  },
}
SCSS
$custom: #9540bb;
$custom-light: #b87bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9540bb",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 281.463,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53877,
    "c": 0.19318,
    "h": 313.6
  },
  "luminance": 0.13644
}

Semantic roles & 50–950 ramp

primary
#9540BB
secondary
#A0C88F
accent
#D94F7A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9540BB

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

Preview Lab → · Contrast checker → · Palette generator →

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