#9D40BB#9D40BB

#9D40BB is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.9% C 0.196 H 316.9°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9D40BB
RGBrgb(157, 64, 187)
HSLhsl(285, 49%, 49%)
HSVhsv(285, 66%, 73%)
CMYKcmyk(16%, 65.8%, 0%, 26.7%)
CIE-LABlab(44.83, 56.88, -47.84)
CIE-LCHlch(44.83, 74.33, 319.93°)
OKLaboklab(54.91% 0.1433 -0.1342)
OKLCHoklch(54.91% 0.196 316.9)
XYZxyz(24.7063, 14.4237, 48.4867)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40BB #5EBB40
analogous
#6040BB #9D40BB #BB409C
triadic
#9D40BB #BB9D40 #40BB9D
tetradic
#9D40BB #BB6040 #5EBB40 #409CBB
square
#9D40BB #BB6040 #5EBB40 #409CBB
split-complementary
#9D40BB #9CBB40 #40BB60
monochromatic
#502160 #77308D #9D40BB #B56CCD #CC99DC

Accessibility & contrast

On white

5.41
#9D40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9D40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40BB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40BB#FFFFFF#000000##FFFFFF
##9D40BB1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B64BF
Deuteranopia (green-blind)
#426DB8
Tritanopia (blue-blind)
#9C5778
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9d40bb;
/* rgb */ color: rgb(157, 64, 187);
/* oklch */ color: oklch(54.9% 0.196 316.9);
Tailwind
colors: {
  custom: {
    50: '#bd7bd0',
    500: '#9d40bb',
    950: '#000000',
  },
}
SCSS
$custom: #9d40bb;
$custom-light: #bd7bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40bb",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 285.366,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54912,
    "c": 0.19629,
    "h": 316.9
  },
  "luminance": 0.14423
}

Semantic roles & 50–950 ramp

primary
#9D40BB
secondary
#9DC88F
accent
#D94F71
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9D40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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