#9540D2#9540D2

#9540D2 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.216 H 307.4°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9540D2
RGBrgb(149, 64, 210)
HSLhsl(275, 62%, 54%)
HSVhsv(275, 70%, 82%)
CMYKcmyk(29%, 69.5%, 0%, 17.6%)
CIE-LABlab(45.23, 60.04, -60.58)
CIE-LCHlch(45.23, 85.30, 314.74°)
OKLaboklab(55.44% 0.1311 -0.1718)
OKLCHoklch(55.44% 0.216 307.4)
XYZxyz(25.8582, 14.7098, 62.4373)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540D2 #7DD240
analogous
#4C40D2 #9540D2 #D240C6
triadic
#9540D2 #D29540 #40D295
tetradic
#9540D2 #D24C40 #7DD240 #40C6D2
square
#9540D2 #D24C40 #7DD240 #40C6D2
split-complementary
#9540D2 #C6D240 #40D24C
monochromatic
#541D7B #7529AC #9540D2 #B072DE #CCA3E9

Accessibility & contrast

On white

5.33
#9540D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9540D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540D2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540D2#FFFFFF#000000##FFFFFF
##9540D21.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#156CCF
Tritanopia (blue-blind)
#8B6185
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9540d2;
/* rgb */ color: rgb(149, 64, 210);
/* oklch */ color: oklch(55.4% 0.216 307.4);
Tailwind
colors: {
  custom: {
    50: '#b97be1',
    500: '#9540d2',
    950: '#000000',
  },
}
SCSS
$custom: #9540d2;
$custom-light: #b97be1;
$custom-dark: #000000;
JSON
{
  "hex": "#9540d2",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 274.932,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55444,
    "c": 0.21613,
    "h": 307.4
  },
  "luminance": 0.14709
}

Semantic roles & 50–950 ramp

primary
#9540D2
secondary
#B2D698
accent
#E54387
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540D2

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

Preview Lab → · Contrast checker → · Palette generator →

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