#9540B8#9540B8

#9540B8 is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.7% C 0.190 H 314.5°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#9540B8
RGBrgb(149, 64, 184)
HSLhsl(283, 48%, 49%)
HSVhsv(283, 65%, 72%)
CMYKcmyk(19%, 65.2%, 0%, 27.8%)
CIE-LABlab(43.53, 54.42, -48.23)
CIE-LCHlch(43.53, 72.71, 318.45°)
OKLaboklab(53.68% 0.1334 -0.1356)
OKLCHoklch(53.68% 0.19 314.5)
XYZxyz(22.8781, 13.5178, 46.7422)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540B8 #63B840
analogous
#5940B8 #9540B8 #B8409F
triadic
#9540B8 #B89540 #40B895
tetradic
#9540B8 #B85940 #63B840 #409FB8
square
#9540B8 #B85940 #63B840 #409FB8
split-complementary
#9540B8 #9FB840 #40B859
monochromatic
#4B205D #70308B #9540B8 #AF6ACB #C797DB

Accessibility & contrast

On white

5.67
#9540B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#9540B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540B8
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540B8#FFFFFF#000000##FFFFFF
##9540B81.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0562BC
Deuteranopia (green-blind)
#3C69B5
Tritanopia (blue-blind)
#925776
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9540b8;
/* rgb */ color: rgb(149, 64, 184);
/* oklch */ color: oklch(53.7% 0.190 314.5);
Tailwind
colors: {
  custom: {
    50: '#b87bce',
    500: '#9540b8',
    950: '#000000',
  },
}
SCSS
$custom: #9540b8;
$custom-light: #b87bce;
$custom-dark: #000000;
JSON
{
  "hex": "#9540b8",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 282.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.53683,
    "c": 0.1902,
    "h": 314.5
  },
  "luminance": 0.13517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9540B8

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

Preview Lab → · Contrast checker → · Palette generator →

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