#9A40D7#9A40D7

#9A40D7 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.4% C 0.222 H 308.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9A40D7
RGBrgb(154, 64, 215)
HSLhsl(276, 65%, 55%)
HSVhsv(276, 70%, 84%)
CMYKcmyk(28.4%, 70.2%, 0%, 15.7%)
CIE-LABlab(46.24, 62.13, -61.80)
CIE-LCHlch(46.24, 87.63, 315.16°)
OKLaboklab(56.41% 0.137 -0.1752)
OKLCHoklch(56.41% 0.222 308)
XYZxyz(27.4230, 15.4435, 65.8131)
Luminance0.1544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40D7 #7DD740
analogous
#4F40D7 #9A40D7 #D740C8
triadic
#9A40D7 #D79A40 #40D79A
tetradic
#9A40D7 #D74F40 #7DD740 #40C8D7
square
#9A40D7 #D74F40 #7DD740 #40C8D7
split-complementary
#9A40D7 #C8D740 #40D74F
monochromatic
#581B81 #7B26B4 #9A40D7 #B573E2 #D0A5EC

Accessibility & contrast

On white

5.14
#9A40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9A40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40D7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40D7#FFFFFF#000000##FFFFFF
##9A40D71.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#166ED4
Tritanopia (blue-blind)
#906287
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9a40d7;
/* rgb */ color: rgb(154, 64, 215);
/* oklch */ color: oklch(56.4% 0.222 308.0);
Tailwind
colors: {
  custom: {
    50: '#bd7ce4',
    500: '#9a40d7',
    950: '#000000',
  },
}
SCSS
$custom: #9a40d7;
$custom-light: #bd7ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40d7",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 275.762,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56406,
    "c": 0.22243,
    "h": 308
  },
  "luminance": 0.15443
}

Semantic roles & 50–950 ramp

primary
#9A40D7
secondary
#B3D99A
accent
#E83F84
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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