#9540B9#9540B9

#9540B9 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.7% C 0.191 H 314.2°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9540B9
RGBrgb(149, 64, 185)
HSLhsl(282, 49%, 49%)
HSVhsv(282, 65%, 73%)
CMYKcmyk(19.5%, 65.4%, 0%, 27.5%)
CIE-LABlab(43.59, 54.63, -48.72)
CIE-LCHlch(43.59, 73.19, 318.27°)
OKLaboklab(53.75% 0.1334 -0.137)
OKLCHoklch(53.75% 0.191 314.2)
XYZxyz(22.9833, 13.5599, 47.2962)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540B9 #64B940
analogous
#5940B9 #9540B9 #B940A1
triadic
#9540B9 #B99540 #40B995
tetradic
#9540B9 #B95940 #64B940 #40A1B9
square
#9540B9 #B95940 #64B940 #40A1B9
split-complementary
#9540B9 #A1B940 #40B959
monochromatic
#4C215E #70308C #9540B9 #AF6BCC #C798DB

Accessibility & contrast

On white

5.66
#9540B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9540B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540B9
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540B9#FFFFFF#000000##FFFFFF
##9540B91.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0162BD
Deuteranopia (green-blind)
#3B69B6
Tritanopia (blue-blind)
#925777
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9540b9;
/* rgb */ color: rgb(149, 64, 185);
/* oklch */ color: oklch(53.7% 0.191 314.2);
Tailwind
colors: {
  custom: {
    50: '#b87bcf',
    500: '#9540b9',
    950: '#000000',
  },
}
SCSS
$custom: #9540b9;
$custom-light: #b87bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9540b9",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 282.149,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.53747,
    "c": 0.19119,
    "h": 314.2
  },
  "luminance": 0.13559
}

Semantic roles & 50–950 ramp

primary
#9540B9
secondary
#9FC78E
accent
#D85078
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9540B9

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

Preview Lab → · Contrast checker → · Palette generator →

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