#9540BE#9540BE

#9540BE is a mid, vivid purple. Relative luminance 0.138; OKLCH L 54.1% C 0.196 H 312.7°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9540BE
RGBrgb(149, 64, 190)
HSLhsl(280, 50%, 50%)
HSVhsv(280, 66%, 75%)
CMYKcmyk(21.6%, 66.3%, 0%, 25.5%)
CIE-LABlab(43.91, 55.69, -51.14)
CIE-LCHlch(43.91, 75.60, 317.44°)
OKLaboklab(54.07% 0.1331 -0.1441)
OKLCHoklch(54.07% 0.196 312.7)
XYZxyz(23.5204, 13.7747, 50.1250)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540BE #69BE40
analogous
#5640BE #9540BE #BE40A8
triadic
#9540BE #BE9540 #40BE95
tetradic
#9540BE #BE5640 #69BE40 #40A8BE
square
#9540BE #BE5640 #69BE40 #40A8BE
split-complementary
#9540BE #A8BE40 #40BE56
monochromatic
#4D2162 #713190 #9540BE #AE6DCE #C89BDD

Accessibility & contrast

On white

5.59
#9540BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9540BE
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540BE#FFFFFF#000000##FFFFFF
##9540BE1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#366ABB
Tritanopia (blue-blind)
#91597A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9540be;
/* rgb */ color: rgb(149, 64, 190);
/* oklch */ color: oklch(54.1% 0.196 312.7);
Tailwind
colors: {
  custom: {
    50: '#b87bd2',
    500: '#9540be',
    950: '#000000',
  },
}
SCSS
$custom: #9540be;
$custom-light: #b87bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9540be",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 280.476,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54073,
    "c": 0.19616,
    "h": 312.7
  },
  "luminance": 0.13774
}

Semantic roles & 50–950 ramp

primary
#9540BE
secondary
#A3C990
accent
#D94F7C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9540BE

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

Preview Lab → · Contrast checker → · Palette generator →

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