#9A40DA#9A40DA

#9A40DA is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.225 H 307.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9A40DA
RGBrgb(154, 64, 218)
HSLhsl(275, 68%, 55%)
HSVhsv(275, 71%, 85%)
CMYKcmyk(29.4%, 70.6%, 0%, 14.5%)
CIE-LABlab(46.44, 62.79, -63.18)
CIE-LCHlch(46.44, 89.07, 314.82°)
OKLaboklab(56.62% 0.1366 -0.1793)
OKLCHoklch(56.62% 0.225 307.3)
XYZxyz(27.8120, 15.5991, 67.8619)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40DA #80DA40
analogous
#4D40DA #9A40DA #DA40CD
triadic
#9A40DA #DA9A40 #40DA9A
tetradic
#9A40DA #DA4D40 #80DA40 #40CDDA
square
#9A40DA #DA4D40 #80DA40 #40CDDA
split-complementary
#9A40DA #CDDA40 #40DA4D
monochromatic
#591A86 #7B24B9 #9A40DA #B573E4 #D0A7EE

Accessibility & contrast

On white

5.10
#9A40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9A40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40DA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40DA#FFFFFF#000000##FFFFFF
##9A40DA1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDE
Deuteranopia (green-blind)
#0A6FD7
Tritanopia (blue-blind)
#8F6389
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9a40da;
/* rgb */ color: rgb(154, 64, 218);
/* oklch */ color: oklch(56.6% 0.225 307.3);
Tailwind
colors: {
  custom: {
    50: '#bd7ce6',
    500: '#9a40da',
    950: '#000000',
  },
}
SCSS
$custom: #9a40da;
$custom-light: #bd7ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40da",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 275.065,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5662,
    "c": 0.22536,
    "h": 307.3
  },
  "luminance": 0.15599
}

Semantic roles & 50–950 ramp

primary
#9A40DA
secondary
#B5DB9B
accent
#EA3D85
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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