#9540CB#9540CB

#9540CB is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.0% C 0.209 H 309.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9540CB
RGBrgb(149, 64, 203)
HSLhsl(277, 57%, 52%)
HSVhsv(277, 68%, 80%)
CMYKcmyk(26.6%, 68.5%, 0%, 20.4%)
CIE-LABlab(44.76, 58.50, -57.32)
CIE-LCHlch(44.76, 81.90, 315.58°)
OKLaboklab(54.95% 0.132 -0.1622)
OKLCHoklch(54.95% 0.209 309.1)
XYZxyz(25.0052, 14.3686, 57.9445)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540CB #76CB40
analogous
#5040CB #9540CB #CB40BB
triadic
#9540CB #CB9540 #40CB95
tetradic
#9540CB #CB5040 #76CB40 #40BBCB
square
#9540CB #CB5040 #76CB40 #40BBCB
split-complementary
#9540CB #BBCB40 #40CB50
monochromatic
#521F72 #742CA2 #9540CB #B070D8 #CAA0E5

Accessibility & contrast

On white

5.42
#9540CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#9540CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540CB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540CB#FFFFFF#000000##FFFFFF
##9540CB1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#256BC8
Tritanopia (blue-blind)
#8D5E81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9540cb;
/* rgb */ color: rgb(149, 64, 203);
/* oklch */ color: oklch(55.0% 0.209 309.1);
Tailwind
colors: {
  custom: {
    50: '#b97bdc',
    500: '#9540cb',
    950: '#000000',
  },
}
SCSS
$custom: #9540cb;
$custom-light: #b97bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9540cb",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 276.691,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54952,
    "c": 0.20914,
    "h": 309.1
  },
  "luminance": 0.14368
}

Semantic roles & 50–950 ramp

primary
#9540CB
secondary
#ADD295
accent
#E04783
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540CB

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

Preview Lab → · Contrast checker → · Palette generator →

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