#9540DA#9540DA

#9540DA is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.0% C 0.224 H 305.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9540DA
RGBrgb(149, 64, 218)
HSLhsl(273, 68%, 55%)
HSVhsv(273, 71%, 85%)
CMYKcmyk(31.7%, 70.6%, 0%, 14.5%)
CIE-LABlab(45.80, 61.83, -64.26)
CIE-LCHlch(45.80, 89.18, 313.90°)
OKLaboklab(56.02% 0.13 -0.1826)
OKLCHoklch(56.02% 0.224 305.4)
XYZxyz(26.8799, 15.1185, 67.8182)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540DA #85DA40
analogous
#4840DA #9540DA #DA40D2
triadic
#9540DA #DA9540 #40DA95
tetradic
#9540DA #DA4840 #85DA40 #40D2DA
square
#9540DA #DA4840 #85DA40 #40D2DA
split-complementary
#9540DA #D2DA40 #40DA48
monochromatic
#551A86 #7624B9 #9540DA #B173E4 #CEA7EE

Accessibility & contrast

On white

5.22
#9540DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9540DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540DA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540DA#FFFFFF#000000##FFFFFF
##9540DA1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#006DD7
Tritanopia (blue-blind)
#886489
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9540da;
/* rgb */ color: rgb(149, 64, 218);
/* oklch */ color: oklch(56.0% 0.224 305.4);
Tailwind
colors: {
  custom: {
    50: '#b97ce6',
    500: '#9540da',
    950: '#000000',
  },
}
SCSS
$custom: #9540da;
$custom-light: #b97ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9540da",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 273.117,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56021,
    "c": 0.22414,
    "h": 305.4
  },
  "luminance": 0.15118
}

Semantic roles & 50–950 ramp

primary
#9540DA
secondary
#B8DB9B
accent
#EA3D8B
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9540DA

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

Preview Lab → · Contrast checker → · Palette generator →

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