#9540B3#9540B3

#9540B3 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.4% C 0.185 H 316.1°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9540B3
RGBrgb(149, 64, 179)
HSLhsl(284, 47%, 48%)
HSVhsv(284, 64%, 70%)
CMYKcmyk(16.8%, 64.2%, 0%, 29.8%)
CIE-LABlab(43.23, 53.38, -45.78)
CIE-LCHlch(43.23, 70.32, 319.38°)
OKLaboklab(53.37% 0.1336 -0.1284)
OKLCHoklch(53.37% 0.185 316.1)
XYZxyz(22.3633, 13.3118, 44.0305)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540B3 #5EB340
analogous
#5C40B3 #9540B3 #B34097
triadic
#9540B3 #B39540 #40B395
tetradic
#9540B3 #B35C40 #5EB340 #4097B3
square
#9540B3 #B35C40 #5EB340 #4097B3
split-complementary
#9540B3 #97B340 #40B35C
monochromatic
#4A2059 #6F3086 #9540B3 #AF67C9 #C794D9

Accessibility & contrast

On white

5.73
#9540B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9540B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540B3
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540B3#FFFFFF#000000##FFFFFF
##9540B31.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1561B6
Deuteranopia (green-blind)
#4069B0
Tritanopia (blue-blind)
#935574
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9540b3;
/* rgb */ color: rgb(149, 64, 179);
/* oklch */ color: oklch(53.4% 0.185 316.1);
Tailwind
colors: {
  custom: {
    50: '#b77aca',
    500: '#9540b3',
    950: '#000000',
  },
}
SCSS
$custom: #9540b3;
$custom-light: #b77aca;
$custom-dark: #000000;
JSON
{
  "hex": "#9540b3",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 284.348,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53366,
    "c": 0.18526,
    "h": 316.1
  },
  "luminance": 0.13311
}

Semantic roles & 50–950 ramp

primary
#9540B3
secondary
#9AC48A
accent
#D75174
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9540B3

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

Preview Lab → · Contrast checker → · Palette generator →

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