#9A40BD#9A40BD

#9A40BD is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.6% C 0.197 H 315.1°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9A40BD
RGBrgb(154, 64, 189)
HSLhsl(283, 49%, 50%)
HSVhsv(283, 66%, 74%)
CMYKcmyk(18.5%, 66.1%, 0%, 25.9%)
CIE-LABlab(44.54, 56.60, -49.51)
CIE-LCHlch(44.54, 75.20, 318.82°)
OKLaboklab(54.65% 0.1395 -0.1392)
OKLCHoklch(54.65% 0.197 315.1)
XYZxyz(24.3436, 14.2118, 49.5951)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40BD #63BD40
analogous
#5C40BD #9A40BD #BD40A2
triadic
#9A40BD #BD9A40 #40BD9A
tetradic
#9A40BD #BD5C40 #63BD40 #40A2BD
square
#9A40BD #BD5C40 #63BD40 #40A2BD
split-complementary
#9A40BD #A2BD40 #40BD5C
monochromatic
#4F2162 #75318F #9A40BD #B26DCD #CA9ADD

Accessibility & contrast

On white

5.47
#9A40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9A40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40BD
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40BD#FFFFFF#000000##FFFFFF
##9A40BD1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C1
Deuteranopia (green-blind)
#3D6CBA
Tritanopia (blue-blind)
#975879
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9a40bd;
/* rgb */ color: rgb(154, 64, 189);
/* oklch */ color: oklch(54.6% 0.197 315.1);
Tailwind
colors: {
  custom: {
    50: '#bb7bd1',
    500: '#9a40bd',
    950: '#000000',
  },
}
SCSS
$custom: #9a40bd;
$custom-light: #bb7bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40bd",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 283.2,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54648,
    "c": 0.19703,
    "h": 315.1
  },
  "luminance": 0.14211
}

Semantic roles & 50–950 ramp

primary
#9A40BD
secondary
#A0C990
accent
#D94F76
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9A40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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