#9D40BF#9D40BF

#9D40BF is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.2% C 0.200 H 315.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9D40BF
RGBrgb(157, 64, 191)
HSLhsl(284, 50%, 50%)
HSVhsv(284, 66%, 75%)
CMYKcmyk(17.8%, 66.5%, 0%, 25.1%)
CIE-LABlab(45.08, 57.69, -49.79)
CIE-LCHlch(45.08, 76.20, 319.21°)
OKLaboklab(55.17% 0.1431 -0.1399)
OKLCHoklch(55.17% 0.2 315.7)
XYZxyz(25.1405, 14.5974, 50.7734)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40BF #62BF40
analogous
#5D40BF #9D40BF #BF40A2
triadic
#9D40BF #BF9D40 #40BF9D
tetradic
#9D40BF #BF5D40 #62BF40 #40A2BF
square
#9D40BF #BF5D40 #62BF40 #40A2BF
split-complementary
#9D40BF #A2BF40 #40BF5D
monochromatic
#522163 #773191 #9D40BF #B56ECE #CC9CDE

Accessibility & contrast

On white

5.36
#9D40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9D40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40BF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40BF#FFFFFF#000000##FFFFFF
##9D40BF1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#3F6DBC
Tritanopia (blue-blind)
#9B587A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9d40bf;
/* rgb */ color: rgb(157, 64, 191);
/* oklch */ color: oklch(55.2% 0.200 315.7);
Tailwind
colors: {
  custom: {
    50: '#bd7cd3',
    500: '#9d40bf',
    950: '#000000',
  },
}
SCSS
$custom: #9d40bf;
$custom-light: #bd7cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40bf",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 283.937,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.55165,
    "c": 0.20011,
    "h": 315.7
  },
  "luminance": 0.14596
}

Semantic roles & 50–950 ramp

primary
#9D40BF
secondary
#A0CA91
accent
#D94E74
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9D40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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