#9540C8#9540C8

#9540C8 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.206 H 309.9°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9540C8
RGBrgb(149, 64, 200)
HSLhsl(278, 55%, 52%)
HSVhsv(278, 68%, 78%)
CMYKcmyk(25.5%, 68%, 0%, 21.6%)
CIE-LABlab(44.56, 57.84, -55.91)
CIE-LCHlch(44.56, 80.45, 315.97°)
OKLaboklab(54.75% 0.1323 -0.1581)
OKLCHoklch(54.75% 0.206 309.9)
XYZxyz(24.6511, 14.2270, 56.0799)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540C8 #73C840
analogous
#5140C8 #9540C8 #C840B7
triadic
#9540C8 #C89540 #40C895
tetradic
#9540C8 #C85140 #73C840 #40B7C8
square
#9540C8 #C85140 #73C840 #40B7C8
split-complementary
#9540C8 #B7C840 #40C851
monochromatic
#51206E #732D9D #9540C8 #AF70D6 #CA9FE3

Accessibility & contrast

On white

5.46
#9540C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9540C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540C8
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540C8#FFFFFF#000000##FFFFFF
##9540C81.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#2A6BC5
Tritanopia (blue-blind)
#8E5D7F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9540c8;
/* rgb */ color: rgb(149, 64, 200);
/* oklch */ color: oklch(54.7% 0.206 309.9);
Tailwind
colors: {
  custom: {
    50: '#b87bd9',
    500: '#9540c8',
    950: '#000000',
  },
}
SCSS
$custom: #9540c8;
$custom-light: #b87bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9540c8",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 277.5,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54745,
    "c": 0.20614,
    "h": 309.9
  },
  "luminance": 0.14226
}

Semantic roles & 50–950 ramp

primary
#9540C8
secondary
#AAD094
accent
#DF4981
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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