#9540CD#9540CD

#9540CD is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.1% C 0.211 H 308.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#9540CD
RGBrgb(149, 64, 205)
HSLhsl(276, 59%, 53%)
HSVhsv(276, 69%, 80%)
CMYKcmyk(27.3%, 68.8%, 0%, 19.6%)
CIE-LABlab(44.89, 58.94, -58.26)
CIE-LCHlch(44.89, 82.87, 315.33°)
OKLaboklab(55.09% 0.1318 -0.165)
OKLCHoklch(55.09% 0.211 308.6)
XYZxyz(25.2450, 14.4646, 59.2078)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540CD #78CD40
analogous
#4E40CD #9540CD #CD40BF
triadic
#9540CD #CD9540 #40CD95
tetradic
#9540CD #CD4E40 #78CD40 #40BFCD
square
#9540CD #CD4E40 #78CD40 #40BFCD
split-complementary
#9540CD #BFCD40 #40CD4E
monochromatic
#521E74 #742BA5 #9540CD #B071DA #CBA1E6

Accessibility & contrast

On white

5.39
#9540CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9540CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540CD
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540CD#FFFFFF#000000##FFFFFF
##9540CD1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#216BCA
Tritanopia (blue-blind)
#8C5F82
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9540cd;
/* rgb */ color: rgb(149, 64, 205);
/* oklch */ color: oklch(55.1% 0.211 308.6);
Tailwind
colors: {
  custom: {
    50: '#b97bdd',
    500: '#9540cd',
    950: '#000000',
  },
}
SCSS
$custom: #9540cd;
$custom-light: #b97bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9540cd",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 276.17,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55091,
    "c": 0.21114,
    "h": 308.6
  },
  "luminance": 0.14464
}

Semantic roles & 50–950 ramp

primary
#9540CD
secondary
#AED396
accent
#E24684
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540CD

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

Preview Lab → · Contrast checker → · Palette generator →

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