#9540CF#9540CF

#9540CF is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.2% C 0.213 H 308.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9540CF
RGBrgb(149, 64, 207)
HSLhsl(276, 60%, 53%)
HSVhsv(276, 69%, 81%)
CMYKcmyk(28%, 69.1%, 0%, 18.8%)
CIE-LABlab(45.03, 59.38, -59.19)
CIE-LCHlch(45.03, 83.84, 315.09°)
OKLaboklab(55.23% 0.1315 -0.1677)
OKLCHoklch(55.23% 0.213 308.1)
XYZxyz(25.4880, 14.5617, 60.4874)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540CF #7ACF40
analogous
#4D40CF #9540CF #CF40C2
triadic
#9540CF #CF9540 #40CF95
tetradic
#9540CF #CF4D40 #7ACF40 #40C2CF
square
#9540CF #CF4D40 #7ACF40 #40C2CF
split-complementary
#9540CF #C2CF40 #40CF4D
monochromatic
#531E77 #752AA8 #9540CF #B071DB #CBA2E8

Accessibility & contrast

On white

5.37
#9540CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9540CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540CF
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540CF#FFFFFF#000000##FFFFFF
##9540CF1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#1D6BCC
Tritanopia (blue-blind)
#8C6083
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9540cf;
/* rgb */ color: rgb(149, 64, 207);
/* oklch */ color: oklch(55.2% 0.213 308.1);
Tailwind
colors: {
  custom: {
    50: '#b97bde',
    500: '#9540cf',
    950: '#000000',
  },
}
SCSS
$custom: #9540cf;
$custom-light: #b97bde;
$custom-dark: #000000;
JSON
{
  "hex": "#9540cf",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 275.664,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55231,
    "c": 0.21314,
    "h": 308.1
  },
  "luminance": 0.14561
}

Semantic roles & 50–950 ramp

primary
#9540CF
secondary
#B0D497
accent
#E34585
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540CF

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

Preview Lab → · Contrast checker → · Palette generator →

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