#9A40BF#9A40BF

#9A40BF is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.8% C 0.199 H 314.5°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#9A40BF
RGBrgb(154, 64, 191)
HSLhsl(283, 50%, 50%)
HSVhsv(283, 66%, 75%)
CMYKcmyk(19.4%, 66.5%, 0%, 25.1%)
CIE-LABlab(44.66, 57.02, -50.48)
CIE-LCHlch(44.66, 76.15, 318.48°)
OKLaboklab(54.78% 0.1394 -0.142)
OKLCHoklch(54.78% 0.199 314.5)
XYZxyz(24.5622, 14.2992, 50.7463)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40BF #65BF40
analogous
#5B40BF #9A40BF #BF40A4
triadic
#9A40BF #BF9A40 #40BF9A
tetradic
#9A40BF #BF5B40 #65BF40 #40A4BF
square
#9A40BF #BF5B40 #65BF40 #40A4BF
split-complementary
#9A40BF #A4BF40 #40BF5B
monochromatic
#502163 #753191 #9A40BF #B26ECE #CA9CDE

Accessibility & contrast

On white

5.44
#9A40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9A40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40BF
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40BF#FFFFFF#000000##FFFFFF
##9A40BF1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#3B6CBC
Tritanopia (blue-blind)
#97597A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9a40bf;
/* rgb */ color: rgb(154, 64, 191);
/* oklch */ color: oklch(54.8% 0.199 314.5);
Tailwind
colors: {
  custom: {
    50: '#bb7bd3',
    500: '#9a40bf',
    950: '#000000',
  },
}
SCSS
$custom: #9a40bf;
$custom-light: #bb7bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40bf",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 282.52,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.54777,
    "c": 0.19896,
    "h": 314.5
  },
  "luminance": 0.14298
}

Semantic roles & 50–950 ramp

primary
#9A40BF
secondary
#A2CA91
accent
#D94E77
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9A40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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