#9540DD#9540DD

#9540DD is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.227 H 304.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9540DD
RGBrgb(149, 64, 221)
HSLhsl(272, 70%, 56%)
HSVhsv(272, 71%, 87%)
CMYKcmyk(32.6%, 71%, 0%, 13.3%)
CIE-LABlab(46.01, 62.51, -65.62)
CIE-LCHlch(46.01, 90.63, 313.61°)
OKLaboklab(56.24% 0.1295 -0.1866)
OKLCHoklch(56.24% 0.227 304.8)
XYZxyz(27.2760, 15.2769, 69.9044)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540DD #88DD40
analogous
#4640DD #9540DD #DD40D7
triadic
#9540DD #DD9540 #40DD95
tetradic
#9540DD #DD4640 #88DD40 #40D7DD
square
#9540DD #DD4640 #88DD40 #40D7DD
split-complementary
#9540DD #D7DD40 #40DD46
monochromatic
#56198A #7622BE #9540DD #B274E6 #CFA8EF

Accessibility & contrast

On white

5.18
#9540DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9540DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540DD
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540DD#FFFFFF#000000##FFFFFF
##9540DD1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE2
Deuteranopia (green-blind)
#006DDA
Tritanopia (blue-blind)
#87658B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9540dd;
/* rgb */ color: rgb(149, 64, 221);
/* oklch */ color: oklch(56.2% 0.227 304.8);
Tailwind
colors: {
  custom: {
    50: '#ba7ce9',
    500: '#9540dd',
    950: '#000000',
  },
}
SCSS
$custom: #9540dd;
$custom-light: #ba7ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#9540dd",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 272.484,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56241,
    "c": 0.22714,
    "h": 304.8
  },
  "luminance": 0.15277
}

Semantic roles & 50–950 ramp

primary
#9540DD
secondary
#BADD9C
accent
#ED3B8D
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9540DD

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

Preview Lab → · Contrast checker → · Palette generator →

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