#9540DF#9540DF

#9540DF is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.4% C 0.229 H 304.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9540DF
RGBrgb(149, 64, 223)
HSLhsl(272, 71%, 56%)
HSVhsv(272, 71%, 87%)
CMYKcmyk(33.2%, 71.3%, 0%, 12.5%)
CIE-LABlab(46.16, 62.96, -66.52)
CIE-LCHlch(46.16, 91.60, 313.43°)
OKLaboklab(56.39% 0.1291 -0.1893)
OKLCHoklch(56.39% 0.229 304.3)
XYZxyz(27.5441, 15.3842, 71.3161)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540DF #8ADF40
analogous
#4640DF #9540DF #DF40DA
triadic
#9540DF #DF9540 #40DF95
tetradic
#9540DF #DF4640 #8ADF40 #40DADF
square
#9540DF #DF4640 #8ADF40 #40DADF
split-complementary
#9540DF #DADF40 #40DF46
monochromatic
#56188D #7620C1 #9540DF #B274E8 #CFA9F1

Accessibility & contrast

On white

5.15
#9540DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9540DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540DF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540DF#FFFFFF#000000##FFFFFF
##9540DF1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#006DDC
Tritanopia (blue-blind)
#87668C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9540df;
/* rgb */ color: rgb(149, 64, 223);
/* oklch */ color: oklch(56.4% 0.229 304.3);
Tailwind
colors: {
  custom: {
    50: '#ba7cea',
    500: '#9540df',
    950: '#000000',
  },
}
SCSS
$custom: #9540df;
$custom-light: #ba7cea;
$custom-dark: #000000;
JSON
{
  "hex": "#9540df",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 272.075,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5639,
    "c": 0.22913,
    "h": 304.3
  },
  "luminance": 0.15384
}

Semantic roles & 50–950 ramp

primary
#9540DF
secondary
#BBDE9D
accent
#EE3A8E
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9540DF

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

Preview Lab → · Contrast checker → · Palette generator →

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