#9540B5#9540B5

#9540B5 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.5% C 0.187 H 315.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9540B5
RGBrgb(149, 64, 181)
HSLhsl(284, 48%, 48%)
HSVhsv(284, 65%, 71%)
CMYKcmyk(17.7%, 64.6%, 0%, 29%)
CIE-LABlab(43.35, 53.79, -46.76)
CIE-LCHlch(43.35, 71.28, 319.00°)
OKLaboklab(53.49% 0.1335 -0.1313)
OKLCHoklch(53.49% 0.187 315.5)
XYZxyz(22.5670, 13.3933, 45.1035)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540B5 #60B540
analogous
#5B40B5 #9540B5 #B5409A
triadic
#9540B5 #B59540 #40B595
tetradic
#9540B5 #B55B40 #60B540 #409AB5
square
#9540B5 #B55B40 #60B540 #409AB5
split-complementary
#9540B5 #9AB540 #40B55B
monochromatic
#4B205B #703088 #9540B5 #AF68CA #C796DA

Accessibility & contrast

On white

5.71
#9540B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9540B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540B5
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540B5#FFFFFF#000000##FFFFFF
##9540B51.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1061B9
Deuteranopia (green-blind)
#3F69B2
Tritanopia (blue-blind)
#935675
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9540b5;
/* rgb */ color: rgb(149, 64, 181);
/* oklch */ color: oklch(53.5% 0.187 315.5);
Tailwind
colors: {
  custom: {
    50: '#b77bcc',
    500: '#9540b5',
    950: '#000000',
  },
}
SCSS
$custom: #9540b5;
$custom-light: #b77bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#9540b5",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 283.59,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53492,
    "c": 0.18723,
    "h": 315.5
  },
  "luminance": 0.13393
}

Semantic roles & 50–950 ramp

primary
#9540B5
secondary
#9BC58B
accent
#D75075
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A13
muted
#817C82

Preview Lab

Preview with #9540B5

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

Preview Lab → · Contrast checker → · Palette generator →

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