#9D40BE#9D40BE

#9D40BE is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.199 H 316.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9D40BE
RGBrgb(157, 64, 190)
HSLhsl(284, 50%, 50%)
HSVhsv(284, 66%, 75%)
CMYKcmyk(17.4%, 66.3%, 0%, 25.5%)
CIE-LABlab(45.02, 57.49, -49.30)
CIE-LCHlch(45.02, 75.73, 319.38°)
OKLaboklab(55.1% 0.1432 -0.1384)
OKLCHoklch(55.1% 0.199 316)
XYZxyz(25.0308, 14.5535, 50.1958)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40BE #61BE40
analogous
#5E40BE #9D40BE #BE40A0
triadic
#9D40BE #BE9D40 #40BE9D
tetradic
#9D40BE #BE5E40 #61BE40 #40A0BE
square
#9D40BE #BE5E40 #61BE40 #40A0BE
split-complementary
#9D40BE #A0BE40 #40BE5E
monochromatic
#512162 #773190 #9D40BE #B56DCE #CC9BDD

Accessibility & contrast

On white

5.37
#9D40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9D40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40BE
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40BE#FFFFFF#000000##FFFFFF
##9D40BE1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#406DBB
Tritanopia (blue-blind)
#9B587A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9d40be;
/* rgb */ color: rgb(157, 64, 190);
/* oklch */ color: oklch(55.1% 0.199 316.0);
Tailwind
colors: {
  custom: {
    50: '#bd7cd2',
    500: '#9d40be',
    950: '#000000',
  },
}
SCSS
$custom: #9d40be;
$custom-light: #bd7cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40be",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 284.286,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55101,
    "c": 0.19916,
    "h": 316
  },
  "luminance": 0.14553
}

Semantic roles & 50–950 ramp

primary
#9D40BE
secondary
#9FC990
accent
#D94F73
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9D40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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