#9A40D9#9A40D9

#9A40D9 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.5% C 0.224 H 307.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9A40D9
RGBrgb(154, 64, 217)
HSLhsl(275, 67%, 55%)
HSVhsv(275, 71%, 85%)
CMYKcmyk(29%, 70.5%, 0%, 14.9%)
CIE-LABlab(46.37, 62.57, -62.72)
CIE-LCHlch(46.37, 88.59, 314.93°)
OKLaboklab(56.55% 0.1367 -0.1779)
OKLCHoklch(56.55% 0.224 307.5)
XYZxyz(27.6816, 15.5469, 67.1748)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40D9 #7FD940
analogous
#4D40D9 #9A40D9 #D940CC
triadic
#9A40D9 #D99A40 #40D99A
tetradic
#9A40D9 #D94D40 #7FD940 #40CCD9
square
#9A40D9 #D94D40 #7FD940 #40CCD9
split-complementary
#9A40D9 #CCD940 #40D94D
monochromatic
#591A84 #7B24B7 #9A40D9 #B573E3 #D0A6ED

Accessibility & contrast

On white

5.11
#9A40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9A40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40D9
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40D9#FFFFFF#000000##FFFFFF
##9A40D91.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0F6FD6
Tritanopia (blue-blind)
#906388
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9a40d9;
/* rgb */ color: rgb(154, 64, 217);
/* oklch */ color: oklch(56.5% 0.224 307.5);
Tailwind
colors: {
  custom: {
    50: '#bd7ce6',
    500: '#9a40d9',
    950: '#000000',
  },
}
SCSS
$custom: #9a40d9;
$custom-light: #bd7ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40d9",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 275.294,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56548,
    "c": 0.22438,
    "h": 307.5
  },
  "luminance": 0.15547
}

Semantic roles & 50–950 ramp

primary
#9A40D9
secondary
#B5DA9A
accent
#EA3E85
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A40D9

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

Preview Lab → · Contrast checker → · Palette generator →

#9A40D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva