#9540D1#9540D1

#9540D1 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.215 H 307.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9540D1
RGBrgb(149, 64, 209)
HSLhsl(275, 61%, 54%)
HSVhsv(275, 69%, 82%)
CMYKcmyk(28.7%, 69.4%, 0%, 18%)
CIE-LABlab(45.17, 59.82, -60.12)
CIE-LCHlch(45.17, 84.81, 314.86°)
OKLaboklab(55.37% 0.1313 -0.1704)
OKLCHoklch(55.37% 0.215 307.6)
XYZxyz(25.7340, 14.6602, 61.7833)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540D1 #7CD140
analogous
#4C40D1 #9540D1 #D140C5
triadic
#9540D1 #D19540 #40D195
tetradic
#9540D1 #D14C40 #7CD140 #40C5D1
square
#9540D1 #D14C40 #7CD140 #40C5D1
split-complementary
#9540D1 #C5D140 #40D14C
monochromatic
#531D79 #7529AB #9540D1 #B071DD #CCA3E9

Accessibility & contrast

On white

5.34
#9540D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9540D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540D1
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540D1#FFFFFF#000000##FFFFFF
##9540D11.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D5
Deuteranopia (green-blind)
#186CCE
Tritanopia (blue-blind)
#8B6184
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9540d1;
/* rgb */ color: rgb(149, 64, 209);
/* oklch */ color: oklch(55.4% 0.215 307.6);
Tailwind
colors: {
  custom: {
    50: '#b97be0',
    500: '#9540d1',
    950: '#000000',
  },
}
SCSS
$custom: #9540d1;
$custom-light: #b97be0;
$custom-dark: #000000;
JSON
{
  "hex": "#9540d1",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 275.172,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55373,
    "c": 0.21514,
    "h": 307.6
  },
  "luminance": 0.1466
}

Semantic roles & 50–950 ramp

primary
#9540D1
secondary
#B1D597
accent
#E44486
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540D1

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

Preview Lab → · Contrast checker → · Palette generator →

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