#9A40BE#9A40BE

#9A40BE is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.7% C 0.198 H 314.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9A40BE
RGBrgb(154, 64, 190)
HSLhsl(283, 50%, 50%)
HSVhsv(283, 66%, 75%)
CMYKcmyk(18.9%, 66.3%, 0%, 25.5%)
CIE-LABlab(44.60, 56.81, -50.00)
CIE-LCHlch(44.60, 75.68, 318.65°)
OKLaboklab(54.71% 0.1394 -0.1406)
OKLCHoklch(54.71% 0.198 314.8)
XYZxyz(24.4526, 14.2553, 50.1687)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40BE #64BE40
analogous
#5B40BE #9A40BE #BE40A3
triadic
#9A40BE #BE9A40 #40BE9A
tetradic
#9A40BE #BE5B40 #64BE40 #40A3BE
square
#9A40BE #BE5B40 #64BE40 #40A3BE
split-complementary
#9A40BE #A3BE40 #40BE5B
monochromatic
#502162 #753190 #9A40BE #B26DCE #CA9BDD

Accessibility & contrast

On white

5.45
#9A40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9A40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40BE
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40BE#FFFFFF#000000##FFFFFF
##9A40BE1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C2
Deuteranopia (green-blind)
#3C6CBB
Tritanopia (blue-blind)
#97587A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9a40be;
/* rgb */ color: rgb(154, 64, 190);
/* oklch */ color: oklch(54.7% 0.198 314.8);
Tailwind
colors: {
  custom: {
    50: '#bb7bd2',
    500: '#9a40be',
    950: '#000000',
  },
}
SCSS
$custom: #9a40be;
$custom-light: #bb7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40be",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 282.857,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54712,
    "c": 0.198,
    "h": 314.8
  },
  "luminance": 0.14255
}

Semantic roles & 50–950 ramp

primary
#9A40BE
secondary
#A1C990
accent
#D94F76
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9A40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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