#9540D8#9540D8

#9540D8 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.9% C 0.222 H 305.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9540D8
RGBrgb(149, 64, 216)
HSLhsl(274, 66%, 55%)
HSVhsv(274, 70%, 85%)
CMYKcmyk(31%, 70.4%, 0%, 15.3%)
CIE-LABlab(45.65, 61.38, -63.34)
CIE-LCHlch(45.65, 88.21, 314.10°)
OKLaboklab(55.88% 0.1303 -0.1799)
OKLCHoklch(55.88% 0.222 305.9)
XYZxyz(26.6198, 15.0144, 66.4481)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540D8 #83D840
analogous
#4940D8 #9540D8 #D840CF
triadic
#9540D8 #D89540 #40D895
tetradic
#9540D8 #D84940 #83D840 #40CFD8
square
#9540D8 #D84940 #83D840 #40CFD8
split-complementary
#9540D8 #CFD840 #40D849
monochromatic
#551B83 #7625B6 #9540D8 #B173E2 #CDA6ED

Accessibility & contrast

On white

5.25
#9540D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9540D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540D8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540D8#FFFFFF#000000##FFFFFF
##9540D81.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#006CD5
Tritanopia (blue-blind)
#896388
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9540d8;
/* rgb */ color: rgb(149, 64, 216);
/* oklch */ color: oklch(55.9% 0.222 305.9);
Tailwind
colors: {
  custom: {
    50: '#b97ce5',
    500: '#9540d8',
    950: '#000000',
  },
}
SCSS
$custom: #9540d8;
$custom-light: #b97ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#9540d8",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 273.553,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55875,
    "c": 0.22214,
    "h": 305.9
  },
  "luminance": 0.15014
}

Semantic roles & 50–950 ramp

primary
#9540D8
secondary
#B6DA9A
accent
#E93F8A
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9540D8

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

Preview Lab → · Contrast checker → · Palette generator →

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