#9540CE#9540CE

#9540CE is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.2% C 0.212 H 308.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9540CE
RGBrgb(149, 64, 206)
HSLhsl(276, 59%, 53%)
HSVhsv(276, 69%, 81%)
CMYKcmyk(27.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(44.96, 59.16, -58.72)
CIE-LCHlch(44.96, 83.36, 315.21°)
OKLaboklab(55.16% 0.1316 -0.1663)
OKLCHoklch(55.16% 0.212 308.4)
XYZxyz(25.3661, 14.5130, 59.8456)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540CE #79CE40
analogous
#4E40CE #9540CE #CE40C0
triadic
#9540CE #CE9540 #40CE95
tetradic
#9540CE #CE4E40 #79CE40 #40C0CE
square
#9540CE #CE4E40 #79CE40 #40C0CE
split-complementary
#9540CE #C0CE40 #40CE4E
monochromatic
#521E75 #752BA6 #9540CE #B071DA #CBA1E7

Accessibility & contrast

On white

5.38
#9540CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9540CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540CE
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540CE#FFFFFF#000000##FFFFFF
##9540CE1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#1F6BCB
Tritanopia (blue-blind)
#8C5F82
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9540ce;
/* rgb */ color: rgb(149, 64, 206);
/* oklch */ color: oklch(55.2% 0.212 308.4);
Tailwind
colors: {
  custom: {
    50: '#b97bde',
    500: '#9540ce',
    950: '#000000',
  },
}
SCSS
$custom: #9540ce;
$custom-light: #b97bde;
$custom-dark: #000000;
JSON
{
  "hex": "#9540ce",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 275.915,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55161,
    "c": 0.21214,
    "h": 308.4
  },
  "luminance": 0.14513
}

Semantic roles & 50–950 ramp

primary
#9540CE
secondary
#AFD496
accent
#E24584
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540CE

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

Preview Lab → · Contrast checker → · Palette generator →

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