#9D40BA#9D40BA

#9D40BA is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.8% C 0.195 H 317.2°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9D40BA
RGBrgb(157, 64, 186)
HSLhsl(286, 49%, 49%)
HSVhsv(286, 66%, 73%)
CMYKcmyk(15.6%, 65.6%, 0%, 27.1%)
CIE-LABlab(44.77, 56.68, -47.35)
CIE-LCHlch(44.77, 73.86, 320.12°)
OKLaboklab(54.85% 0.1433 -0.1327)
OKLCHoklch(54.85% 0.195 317.2)
XYZxyz(24.5997, 14.3810, 47.9249)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40BA #5DBA40
analogous
#6040BA #9D40BA #BA409A
triadic
#9D40BA #BA9D40 #40BA9D
tetradic
#9D40BA #BA6040 #5DBA40 #409ABA
square
#9D40BA #BA6040 #5DBA40 #409ABA
split-complementary
#9D40BA #9ABA40 #40BA60
monochromatic
#50215F #77308C #9D40BA #B56BCC #CC99DC

Accessibility & contrast

On white

5.42
#9D40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D40BA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40BA#FFFFFF#000000##FFFFFF
##9D40BA1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F64BE
Deuteranopia (green-blind)
#436DB7
Tritanopia (blue-blind)
#9C5678
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9d40ba;
/* rgb */ color: rgb(157, 64, 186);
/* oklch */ color: oklch(54.8% 0.195 317.2);
Tailwind
colors: {
  custom: {
    50: '#bd7bcf',
    500: '#9d40ba',
    950: '#000000',
  },
}
SCSS
$custom: #9d40ba;
$custom-light: #bd7bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40ba",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 285.738,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54849,
    "c": 0.19534,
    "h": 317.2
  },
  "luminance": 0.1438
}

Semantic roles & 50–950 ramp

primary
#9D40BA
secondary
#9CC88E
accent
#D84F70
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9D40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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