#9540C1#9540C1

#9540C1 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.3% C 0.199 H 311.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9540C1
RGBrgb(149, 64, 193)
HSLhsl(280, 51%, 50%)
HSVhsv(280, 67%, 76%)
CMYKcmyk(22.8%, 66.8%, 0%, 24.3%)
CIE-LABlab(44.10, 56.33, -52.58)
CIE-LCHlch(44.10, 77.05, 316.97°)
OKLaboklab(54.27% 0.1329 -0.1483)
OKLCHoklch(54.27% 0.199 311.9)
XYZxyz(23.8517, 13.9072, 51.8696)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540C1 #6CC140
analogous
#5440C1 #9540C1 #C140AC
triadic
#9540C1 #C19540 #40C195
tetradic
#9540C1 #C15440 #6CC140 #40ACC1
square
#9540C1 #C15440 #6CC140 #40ACC1
split-complementary
#9540C1 #ACC140 #40C154
monochromatic
#4E2166 #723094 #9540C1 #AF6ED0 #C89CDF

Accessibility & contrast

On white

5.55
#9540C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9540C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540C1
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540C1#FFFFFF#000000##FFFFFF
##9540C11.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C5
Deuteranopia (green-blind)
#336ABE
Tritanopia (blue-blind)
#905A7B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9540c1;
/* rgb */ color: rgb(149, 64, 193);
/* oklch */ color: oklch(54.3% 0.199 311.9);
Tailwind
colors: {
  custom: {
    50: '#b87bd4',
    500: '#9540c1',
    950: '#000000',
  },
}
SCSS
$custom: #9540c1;
$custom-light: #b87bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#9540c1",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 279.535,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54272,
    "c": 0.19915,
    "h": 311.9
  },
  "luminance": 0.13907
}

Semantic roles & 50–950 ramp

primary
#9540C1
secondary
#A5CB92
accent
#DA4D7D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9540C1

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

Preview Lab → · Contrast checker → · Palette generator →

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