#9540D0#9540D0

#9540D0 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.3% C 0.214 H 307.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9540D0
RGBrgb(149, 64, 208)
HSLhsl(275, 61%, 53%)
HSVhsv(275, 69%, 82%)
CMYKcmyk(28.4%, 69.2%, 0%, 18.4%)
CIE-LABlab(45.10, 59.60, -59.66)
CIE-LCHlch(45.10, 84.33, 314.97°)
OKLaboklab(55.3% 0.1314 -0.1691)
OKLCHoklch(55.3% 0.214 307.8)
XYZxyz(25.6106, 14.6108, 61.1333)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540D0 #7BD040
analogous
#4D40D0 #9540D0 #D040C3
triadic
#9540D0 #D09540 #40D095
tetradic
#9540D0 #D04D40 #7BD040 #40C3D0
square
#9540D0 #D04D40 #7BD040 #40C3D0
split-complementary
#9540D0 #C3D040 #40D04D
monochromatic
#531E78 #752AA9 #9540D0 #B071DC #CCA2E8

Accessibility & contrast

On white

5.35
#9540D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9540D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540D0
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540D0#FFFFFF#000000##FFFFFF
##9540D01.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D4
Deuteranopia (green-blind)
#1B6CCD
Tritanopia (blue-blind)
#8C6083
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9540d0;
/* rgb */ color: rgb(149, 64, 208);
/* oklch */ color: oklch(55.3% 0.214 307.8);
Tailwind
colors: {
  custom: {
    50: '#b97bdf',
    500: '#9540d0',
    950: '#000000',
  },
}
SCSS
$custom: #9540d0;
$custom-light: #b97bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#9540d0",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 275.417,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55302,
    "c": 0.21414,
    "h": 307.8
  },
  "luminance": 0.1461
}

Semantic roles & 50–950 ramp

primary
#9540D0
secondary
#B0D597
accent
#E44486
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9540D0

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

Preview Lab → · Contrast checker → · Palette generator →

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