#9540D6#9540D6

#9540D6 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.220 H 306.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9540D6
RGBrgb(149, 64, 214)
HSLhsl(274, 65%, 55%)
HSVhsv(274, 70%, 84%)
CMYKcmyk(30.4%, 70.1%, 0%, 16.1%)
CIE-LABlab(45.51, 60.94, -62.43)
CIE-LCHlch(45.51, 87.24, 314.31°)
OKLaboklab(55.73% 0.1306 -0.1772)
OKLCHoklch(55.73% 0.22 306.4)
XYZxyz(26.3628, 14.9117, 65.0947)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540D6 #81D640
analogous
#4A40D6 #9540D6 #D640CC
triadic
#9540D6 #D69540 #40D695
tetradic
#9540D6 #D64A40 #81D640 #40CCD6
square
#9540D6 #D64A40 #81D640 #40CCD6
split-complementary
#9540D6 #CCD640 #40D64A
monochromatic
#551B80 #7626B2 #9540D6 #B172E1 #CDA5EC

Accessibility & contrast

On white

5.27
#9540D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9540D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540D6
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540D6#FFFFFF#000000##FFFFFF
##9540D61.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#046CD3
Tritanopia (blue-blind)
#8A6287
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9540d6;
/* rgb */ color: rgb(149, 64, 214);
/* oklch */ color: oklch(55.7% 0.220 306.4);
Tailwind
colors: {
  custom: {
    50: '#b97ce3',
    500: '#9540d6',
    950: '#000000',
  },
}
SCSS
$custom: #9540d6;
$custom-light: #b97ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9540d6",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 274,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5573,
    "c": 0.22014,
    "h": 306.4
  },
  "luminance": 0.14911
}

Semantic roles & 50–950 ramp

primary
#9540D6
secondary
#B5D999
accent
#E84089
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9540D6

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

Preview Lab → · Contrast checker → · Palette generator →

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