#9540CC#9540CC

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

Color values

HEX#9540CC
RGBrgb(149, 64, 204)
HSLhsl(276, 58%, 53%)
HSVhsv(276, 69%, 80%)
CMYKcmyk(27%, 68.6%, 0%, 20%)
CIE-LABlab(44.82, 58.72, -57.79)
CIE-LCHlch(44.82, 82.39, 315.46°)
OKLaboklab(55.02% 0.1319 -0.1636)
OKLCHoklch(55.02% 0.21 308.9)
XYZxyz(25.1247, 14.4164, 58.5741)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540CC #77CC40
analogous
#4F40CC #9540CC #CC40BD
triadic
#9540CC #CC9540 #40CC95
tetradic
#9540CC #CC4F40 #77CC40 #40BDCC
square
#9540CC #CC4F40 #77CC40 #40BDCC
split-complementary
#9540CC #BDCC40 #40CC4F
monochromatic
#521F73 #742CA3 #9540CC #B070D9 #CBA1E6

Accessibility & contrast

On white

5.41
#9540CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9540CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540CC
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540CC#FFFFFF#000000##FFFFFF
##9540CC1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#236BC9
Tritanopia (blue-blind)
#8D5F81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9540cc;
/* rgb */ color: rgb(149, 64, 204);
/* oklch */ color: oklch(55.0% 0.210 308.9);
Tailwind
colors: {
  custom: {
    50: '#b97bdc',
    500: '#9540cc',
    950: '#000000',
  },
}
SCSS
$custom: #9540cc;
$custom-light: #b97bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9540cc",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 276.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55021,
    "c": 0.21013,
    "h": 308.9
  },
  "luminance": 0.14416
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9540CC

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

Preview Lab → · Contrast checker → · Palette generator →

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