#9540A5#9540A5

#9540A5 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.5% C 0.172 H 321.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#9540A5
RGBrgb(149, 64, 165)
HSLhsl(290, 44%, 45%)
HSVhsv(290, 61%, 65%)
CMYKcmyk(9.7%, 61.2%, 0%, 35.3%)
CIE-LABlab(42.42, 50.55, -38.77)
CIE-LCHlch(42.42, 63.71, 322.51°)
OKLaboklab(52.52% 0.1334 -0.1079)
OKLCHoklch(52.52% 0.172 321)
XYZxyz(21.0186, 12.7740, 36.9485)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540A5 #50A540
analogous
#6240A5 #9540A5 #A54083
triadic
#9540A5 #A59540 #40A595
tetradic
#9540A5 #A56240 #50A540 #4083A5
square
#9540A5 #A56240 #50A540 #4083A5
split-complementary
#9540A5 #83A540 #40A562
monochromatic
#451E4D #6D2F79 #9540A5 #B261C2 #C88DD3

Accessibility & contrast

On white

5.91
#9540A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9540A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540A5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540A5#FFFFFF#000000##FFFFFF
##9540A51.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295EA8
Deuteranopia (green-blind)
#4A67A2
Tritanopia (blue-blind)
#96506C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9540a5;
/* rgb */ color: rgb(149, 64, 165);
/* oklch */ color: oklch(52.5% 0.172 321.0);
Tailwind
colors: {
  custom: {
    50: '#b77ac0',
    500: '#9540a5',
    950: '#000000',
  },
}
SCSS
$custom: #9540a5;
$custom-light: #b77ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#9540a5",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 290.495,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52519,
    "c": 0.17161,
    "h": 321
  },
  "luminance": 0.12773
}

Semantic roles & 50–950 ramp

primary
#9540A5
secondary
#8CBE83
accent
#D45468
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #9540A5

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

Preview Lab → · Contrast checker → · Palette generator →

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