#9D40BC#9D40BC

#9D40BC is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.0% C 0.197 H 316.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#9D40BC
RGBrgb(157, 64, 188)
HSLhsl(285, 49%, 49%)
HSVhsv(285, 66%, 74%)
CMYKcmyk(16.5%, 66%, 0%, 26.3%)
CIE-LABlab(44.89, 57.08, -48.33)
CIE-LCHlch(44.89, 74.79, 319.75°)
OKLaboklab(54.97% 0.1432 -0.1356)
OKLCHoklch(54.97% 0.197 316.6)
XYZxyz(24.8138, 14.4667, 49.0525)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40BC #5FBC40
analogous
#5F40BC #9D40BC #BC409D
triadic
#9D40BC #BC9D40 #40BC9D
tetradic
#9D40BC #BC5F40 #5FBC40 #409DBC
square
#9D40BC #BC5F40 #5FBC40 #409DBC
split-complementary
#9D40BC #9DBC40 #40BC5F
monochromatic
#512161 #77308E #9D40BC #B56CCD #CC9ADD

Accessibility & contrast

On white

5.39
#9D40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9D40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40BC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40BC#FFFFFF#000000##FFFFFF
##9D40BC1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0865C0
Deuteranopia (green-blind)
#416DB9
Tritanopia (blue-blind)
#9B5779
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9d40bc;
/* rgb */ color: rgb(157, 64, 188);
/* oklch */ color: oklch(55.0% 0.197 316.6);
Tailwind
colors: {
  custom: {
    50: '#bd7bd1',
    500: '#9d40bc',
    950: '#000000',
  },
}
SCSS
$custom: #9d40bc;
$custom-light: #bd7bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40bc",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 285,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54975,
    "c": 0.19724,
    "h": 316.6
  },
  "luminance": 0.14466
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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