#9540D7#9540D7

#9540D7 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.221 H 306.1°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9540D7
RGBrgb(149, 64, 215)
HSLhsl(274, 65%, 55%)
HSVhsv(274, 70%, 84%)
CMYKcmyk(30.7%, 70.2%, 0%, 15.7%)
CIE-LABlab(45.58, 61.16, -62.89)
CIE-LCHlch(45.58, 87.72, 314.20°)
OKLaboklab(55.8% 0.1304 -0.1786)
OKLCHoklch(55.8% 0.221 306.1)
XYZxyz(26.4909, 14.9629, 65.7694)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540D7 #82D740
analogous
#4A40D7 #9540D7 #D740CD
triadic
#9540D7 #D79540 #40D795
tetradic
#9540D7 #D74A40 #82D740 #40CDD7
square
#9540D7 #D74A40 #82D740 #40CDD7
split-complementary
#9540D7 #CDD740 #40D74A
monochromatic
#551B81 #7626B4 #9540D7 #B173E2 #CDA5EC

Accessibility & contrast

On white

5.26
#9540D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9540D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540D7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540D7#FFFFFF#000000##FFFFFF
##9540D71.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#006CD4
Tritanopia (blue-blind)
#896387
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9540d7;
/* rgb */ color: rgb(149, 64, 215);
/* oklch */ color: oklch(55.8% 0.221 306.1);
Tailwind
colors: {
  custom: {
    50: '#b97ce4',
    500: '#9540d7',
    950: '#000000',
  },
}
SCSS
$custom: #9540d7;
$custom-light: #b97ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#9540d7",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 273.775,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55803,
    "c": 0.22114,
    "h": 306.1
  },
  "luminance": 0.14963
}

Semantic roles & 50–950 ramp

primary
#9540D7
secondary
#B5D99A
accent
#E83F89
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9540D7

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

Preview Lab → · Contrast checker → · Palette generator →

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