#9A40BC#9A40BC

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

Color values

HEX#9A40BC
RGBrgb(154, 64, 188)
HSLhsl(284, 49%, 49%)
HSVhsv(284, 66%, 74%)
CMYKcmyk(18.1%, 66%, 0%, 26.3%)
CIE-LABlab(44.47, 56.40, -49.03)
CIE-LCHlch(44.47, 74.73, 319.00°)
OKLaboklab(54.58% 0.1395 -0.1377)
OKLCHoklch(54.58% 0.196 315.4)
XYZxyz(24.2355, 14.1685, 49.0254)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40BC #62BC40
analogous
#5C40BC #9A40BC #BC40A0
triadic
#9A40BC #BC9A40 #40BC9A
tetradic
#9A40BC #BC5C40 #62BC40 #40A0BC
square
#9A40BC #BC5C40 #62BC40 #40A0BC
split-complementary
#9A40BC #A0BC40 #40BC5C
monochromatic
#4F2161 #75308E #9A40BC #B26CCD #CA9ADD

Accessibility & contrast

On white

5.48
#9A40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9A40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40BC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40BC#FFFFFF#000000##FFFFFF
##9A40BC1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C0
Deuteranopia (green-blind)
#3E6CB9
Tritanopia (blue-blind)
#985879
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9a40bc;
/* rgb */ color: rgb(154, 64, 188);
/* oklch */ color: oklch(54.6% 0.196 315.4);
Tailwind
colors: {
  custom: {
    50: '#bb7bd1',
    500: '#9a40bc',
    950: '#000000',
  },
}
SCSS
$custom: #9a40bc;
$custom-light: #bb7bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40bc",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 283.548,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54584,
    "c": 0.19605,
    "h": 315.4
  },
  "luminance": 0.14168
}

Semantic roles & 50–950 ramp

primary
#9A40BC
secondary
#9FC98F
accent
#D94F75
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9A40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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