#9540B2#9540B2

#9540B2 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.3% C 0.184 H 316.5°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9540B2
RGBrgb(149, 64, 178)
HSLhsl(285, 47%, 47%)
HSVhsv(285, 64%, 70%)
CMYKcmyk(16.3%, 64%, 0%, 30.2%)
CIE-LABlab(43.17, 53.17, -45.28)
CIE-LCHlch(43.17, 69.84, 319.58°)
OKLaboklab(53.3% 0.1336 -0.1269)
OKLCHoklch(53.3% 0.184 316.5)
XYZxyz(22.2625, 13.2715, 43.4998)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540B2 #5DB240
analogous
#5C40B2 #9540B2 #B24096
triadic
#9540B2 #B29540 #40B295
tetradic
#9540B2 #B25C40 #5DB240 #4096B2
square
#9540B2 #B25C40 #5DB240 #4096B2
split-complementary
#9540B2 #96B240 #40B25C
monochromatic
#4A2058 #6F3085 #9540B2 #B067C8 #C794D8

Accessibility & contrast

On white

5.75
#9540B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#9540B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540B2
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540B2#FFFFFF#000000##FFFFFF
##9540B21.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1761B5
Deuteranopia (green-blind)
#4168AF
Tritanopia (blue-blind)
#935573
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9540b2;
/* rgb */ color: rgb(149, 64, 178);
/* oklch */ color: oklch(53.3% 0.184 316.5);
Tailwind
colors: {
  custom: {
    50: '#b77ac9',
    500: '#9540b2',
    950: '#000000',
  },
}
SCSS
$custom: #9540b2;
$custom-light: #b77ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#9540b2",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 284.737,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53304,
    "c": 0.18428,
    "h": 316.5
  },
  "luminance": 0.13271
}

Semantic roles & 50–950 ramp

primary
#9540B2
secondary
#99C48A
accent
#D75173
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9540B2

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

Preview Lab → · Contrast checker → · Palette generator →

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