#9A40D0#9A40D0

#9A40D0 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.216 H 309.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9A40D0
RGBrgb(154, 64, 208)
HSLhsl(278, 61%, 53%)
HSVhsv(278, 69%, 82%)
CMYKcmyk(26%, 69.2%, 0%, 18.4%)
CIE-LABlab(45.76, 60.61, -58.55)
CIE-LCHlch(45.76, 84.28, 315.99°)
OKLaboklab(55.92% 0.1379 -0.1657)
OKLCHoklch(55.92% 0.216 309.8)
XYZxyz(26.5427, 15.0914, 61.1770)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40D0 #76D040
analogous
#5240D0 #9A40D0 #D040BE
triadic
#9A40D0 #D09A40 #40D09A
tetradic
#9A40D0 #D05240 #76D040 #40BED0
square
#9A40D0 #D05240 #76D040 #40BED0
split-complementary
#9A40D0 #BED040 #40D052
monochromatic
#561E78 #792AA9 #9A40D0 #B471DC #CEA2E8

Accessibility & contrast

On white

5.23
#9A40D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9A40D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40D0
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40D0#FFFFFF#000000##FFFFFF
##9A40D01.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D4
Deuteranopia (green-blind)
#266ECD
Tritanopia (blue-blind)
#925F83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a40d0;
/* rgb */ color: rgb(154, 64, 208);
/* oklch */ color: oklch(55.9% 0.216 309.8);
Tailwind
colors: {
  custom: {
    50: '#bc7cdf',
    500: '#9a40d0',
    950: '#000000',
  },
}
SCSS
$custom: #9a40d0;
$custom-light: #bc7cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40d0",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 277.5,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55915,
    "c": 0.21556,
    "h": 309.8
  },
  "luminance": 0.15091
}

Semantic roles & 50–950 ramp

primary
#9A40D0
secondary
#AED597
accent
#E44480
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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