#9540BA#9540BA

#9540BA is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.8% C 0.192 H 313.9°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9540BA
RGBrgb(149, 64, 186)
HSLhsl(282, 49%, 49%)
HSVhsv(282, 66%, 73%)
CMYKcmyk(19.9%, 65.6%, 0%, 27.1%)
CIE-LABlab(43.66, 54.84, -49.20)
CIE-LCHlch(43.66, 73.68, 318.10°)
OKLaboklab(53.81% 0.1333 -0.1384)
OKLCHoklch(53.81% 0.192 313.9)
XYZxyz(23.0893, 13.6022, 47.8541)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540BA #65BA40
analogous
#5840BA #9540BA #BA40A2
triadic
#9540BA #BA9540 #40BA95
tetradic
#9540BA #BA5840 #65BA40 #40A2BA
square
#9540BA #BA5840 #65BA40 #40A2BA
split-complementary
#9540BA #A2BA40 #40BA58
monochromatic
#4C215F #71308C #9540BA #AF6BCC #C799DC

Accessibility & contrast

On white

5.64
#9540BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#9540BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540BA
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540BA#FFFFFF#000000##FFFFFF
##9540BA1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#3A69B7
Tritanopia (blue-blind)
#925877
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9540ba;
/* rgb */ color: rgb(149, 64, 186);
/* oklch */ color: oklch(53.8% 0.192 313.9);
Tailwind
colors: {
  custom: {
    50: '#b87bcf',
    500: '#9540ba',
    950: '#000000',
  },
}
SCSS
$custom: #9540ba;
$custom-light: #b87bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9540ba",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 281.803,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53812,
    "c": 0.19218,
    "h": 313.9
  },
  "luminance": 0.13602
}

Semantic roles & 50–950 ramp

primary
#9540BA
secondary
#A0C88E
accent
#D84F79
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9540BA

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

Preview Lab → · Contrast checker → · Palette generator →

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