#9540D5#9540D5

#9540D5 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.219 H 306.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9540D5
RGBrgb(149, 64, 213)
HSLhsl(274, 64%, 54%)
HSVhsv(274, 70%, 84%)
CMYKcmyk(30%, 70%, 0%, 16.5%)
CIE-LABlab(45.44, 60.71, -61.97)
CIE-LCHlch(45.44, 86.75, 314.41°)
OKLaboklab(55.66% 0.1307 -0.1759)
OKLCHoklch(55.66% 0.219 306.6)
XYZxyz(26.2355, 14.8607, 64.4242)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540D5 #80D540
analogous
#4B40D5 #9540D5 #D540CB
triadic
#9540D5 #D59540 #40D595
tetradic
#9540D5 #D54B40 #80D540 #40CBD5
square
#9540D5 #D54B40 #80D540 #40CBD5
split-complementary
#9540D5 #CBD540 #40D54B
monochromatic
#541C7F #7627B1 #9540D5 #B172E0 #CDA4EB

Accessibility & contrast

On white

5.29
#9540D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9540D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540D5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540D5#FFFFFF#000000##FFFFFF
##9540D51.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#096CD2
Tritanopia (blue-blind)
#8A6286
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9540d5;
/* rgb */ color: rgb(149, 64, 213);
/* oklch */ color: oklch(55.7% 0.219 306.6);
Tailwind
colors: {
  custom: {
    50: '#b97ce3',
    500: '#9540d5',
    950: '#000000',
  },
}
SCSS
$custom: #9540d5;
$custom-light: #b97ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9540d5",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 274.228,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55658,
    "c": 0.21914,
    "h": 306.6
  },
  "luminance": 0.1486
}

Semantic roles & 50–950 ramp

primary
#9540D5
secondary
#B4D899
accent
#E74188
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9540D5

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

Preview Lab → · Contrast checker → · Palette generator →

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