#9540CA#9540CA

#9540CA is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.208 H 309.4°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9540CA
RGBrgb(149, 64, 202)
HSLhsl(277, 57%, 52%)
HSVhsv(277, 68%, 79%)
CMYKcmyk(26.2%, 68.3%, 0%, 20.8%)
CIE-LABlab(44.69, 58.28, -56.85)
CIE-LCHlch(44.69, 81.42, 315.71°)
OKLaboklab(54.88% 0.1321 -0.1608)
OKLCHoklch(54.88% 0.208 309.4)
XYZxyz(24.8864, 14.3211, 57.3189)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540CA #75CA40
analogous
#5040CA #9540CA #CA40BA
triadic
#9540CA #CA9540 #40CA95
tetradic
#9540CA #CA5040 #75CA40 #40BACA
square
#9540CA #CA5040 #75CA40 #40BACA
split-complementary
#9540CA #BACA40 #40CA50
monochromatic
#511F70 #742CA0 #9540CA #B070D7 #CAA0E5

Accessibility & contrast

On white

5.43
#9540CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9540CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540CA
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540CA#FFFFFF#000000##FFFFFF
##9540CA1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#276BC7
Tritanopia (blue-blind)
#8D5E80
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9540ca;
/* rgb */ color: rgb(149, 64, 202);
/* oklch */ color: oklch(54.9% 0.208 309.4);
Tailwind
colors: {
  custom: {
    50: '#b87bdb',
    500: '#9540ca',
    950: '#000000',
  },
}
SCSS
$custom: #9540ca;
$custom-light: #b87bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9540ca",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 276.957,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54883,
    "c": 0.20814,
    "h": 309.4
  },
  "luminance": 0.14321
}

Semantic roles & 50–950 ramp

primary
#9540CA
secondary
#ACD195
accent
#E04882
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540CA

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

Preview Lab → · Contrast checker → · Palette generator →

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