#9540D9#9540D9

#9540D9 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.223 H 305.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9540D9
RGBrgb(149, 64, 217)
HSLhsl(273, 67%, 55%)
HSVhsv(273, 71%, 85%)
CMYKcmyk(31.3%, 70.5%, 0%, 14.9%)
CIE-LABlab(45.72, 61.61, -63.80)
CIE-LCHlch(45.72, 88.69, 314.00°)
OKLaboklab(55.95% 0.1301 -0.1813)
OKLCHoklch(55.95% 0.223 305.7)
XYZxyz(26.7494, 15.0663, 67.1311)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540D9 #84D940
analogous
#4840D9 #9540D9 #D940D1
triadic
#9540D9 #D99540 #40D995
tetradic
#9540D9 #D94840 #84D940 #40D1D9
square
#9540D9 #D94840 #84D940 #40D1D9
split-complementary
#9540D9 #D1D940 #40D948
monochromatic
#551A84 #7624B7 #9540D9 #B173E3 #CEA6ED

Accessibility & contrast

On white

5.23
#9540D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9540D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540D9
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540D9#FFFFFF#000000##FFFFFF
##9540D91.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#896488
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9540d9;
/* rgb */ color: rgb(149, 64, 217);
/* oklch */ color: oklch(55.9% 0.223 305.7);
Tailwind
colors: {
  custom: {
    50: '#b97ce6',
    500: '#9540d9',
    950: '#000000',
  },
}
SCSS
$custom: #9540d9;
$custom-light: #b97ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9540d9",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 273.333,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55948,
    "c": 0.22314,
    "h": 305.7
  },
  "luminance": 0.15066
}

Semantic roles & 50–950 ramp

primary
#9540D9
secondary
#B7DA9A
accent
#EA3E8A
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9540D9

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

Preview Lab → · Contrast checker → · Palette generator →

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