#9540C5#9540C5

#9540C5 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.5% C 0.203 H 310.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9540C5
RGBrgb(149, 64, 197)
HSLhsl(278, 53%, 51%)
HSVhsv(278, 68%, 77%)
CMYKcmyk(24.4%, 67.5%, 0%, 22.7%)
CIE-LABlab(44.36, 57.19, -54.49)
CIE-LCHlch(44.36, 78.99, 316.39°)
OKLaboklab(54.54% 0.1326 -0.1539)
OKLCHoklch(54.54% 0.203 310.7)
XYZxyz(24.3039, 14.0881, 54.2515)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540C5 #70C540
analogous
#5240C5 #9540C5 #C540B2
triadic
#9540C5 #C59540 #40C595
tetradic
#9540C5 #C55240 #70C540 #40B2C5
square
#9540C5 #C55240 #70C540 #40B2C5
split-complementary
#9540C5 #B2C540 #40C552
monochromatic
#50206A #732F99 #9540C5 #AF6FD3 #C99EE2

Accessibility & contrast

On white

5.50
#9540C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9540C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540C5
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540C5#FFFFFF#000000##FFFFFF
##9540C51.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#2E6AC2
Tritanopia (blue-blind)
#8F5C7D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9540c5;
/* rgb */ color: rgb(149, 64, 197);
/* oklch */ color: oklch(54.5% 0.203 310.7);
Tailwind
colors: {
  custom: {
    50: '#b87bd7',
    500: '#9540c5',
    950: '#000000',
  },
}
SCSS
$custom: #9540c5;
$custom-light: #b87bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9540c5",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 278.346,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54541,
    "c": 0.20314,
    "h": 310.7
  },
  "luminance": 0.14088
}

Semantic roles & 50–950 ramp

primary
#9540C5
secondary
#A8CE93
accent
#DD4B80
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9540C5

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

Preview Lab → · Contrast checker → · Palette generator →

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