#9540D3#9540D3

#9540D3 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.217 H 307.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9540D3
RGBrgb(149, 64, 211)
HSLhsl(275, 63%, 54%)
HSVhsv(275, 70%, 83%)
CMYKcmyk(29.4%, 69.7%, 0%, 17.3%)
CIE-LABlab(45.30, 60.27, -61.05)
CIE-LCHlch(45.30, 85.78, 314.63°)
OKLaboklab(55.52% 0.131 -0.1732)
OKLCHoklch(55.52% 0.217 307.1)
XYZxyz(25.9832, 14.7598, 63.0955)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540D3 #7ED340
analogous
#4C40D3 #9540D3 #D340C8
triadic
#9540D3 #D39540 #40D395
tetradic
#9540D3 #D34C40 #7ED340 #40C8D3
square
#9540D3 #D34C40 #7ED340 #40C8D3
split-complementary
#9540D3 #C8D340 #40D34C
monochromatic
#541D7C #7528AE #9540D3 #B172DE #CCA3EA

Accessibility & contrast

On white

5.31
#9540D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9540D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540D3
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540D3#FFFFFF#000000##FFFFFF
##9540D31.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#126CD0
Tritanopia (blue-blind)
#8B6185
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9540d3;
/* rgb */ color: rgb(149, 64, 211);
/* oklch */ color: oklch(55.5% 0.217 307.1);
Tailwind
colors: {
  custom: {
    50: '#b97ce1',
    500: '#9540d3',
    950: '#000000',
  },
}
SCSS
$custom: #9540d3;
$custom-light: #b97ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9540d3",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 274.694,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55515,
    "c": 0.21714,
    "h": 307.1
  },
  "luminance": 0.1476
}

Semantic roles & 50–950 ramp

primary
#9540D3
secondary
#B2D798
accent
#E64287
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540D3

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

Preview Lab → · Contrast checker → · Palette generator →

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