#9D40AF#9D40AF

#9D40AF is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.2% C 0.185 H 320.8°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9D40AF
RGBrgb(157, 64, 175)
HSLhsl(290, 46%, 47%)
HSVhsv(290, 63%, 69%)
CMYKcmyk(10.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(44.13, 54.51, -41.91)
CIE-LCHlch(44.13, 68.76, 322.44°)
OKLaboklab(54.18% 0.1434 -0.1169)
OKLCHoklch(54.18% 0.185 320.8)
XYZxyz(23.4750, 13.9312, 42.0016)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40AF #52AF40
analogous
#6540AF #9D40AF #AF408A
triadic
#9D40AF #AF9D40 #40AF9D
tetradic
#9D40AF #AF6540 #52AF40 #408AAF
square
#9D40AF #AF6540 #52AF40 #408AAF
split-complementary
#9D40AF #8AAF40 #40AF65
monochromatic
#4D1F55 #753082 #9D40AF #B765C7 #CC92D7

Accessibility & contrast

On white

5.55
#9D40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9D40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40AF
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40AF#FFFFFF#000000##FFFFFF
##9D40AF1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2462B2
Deuteranopia (green-blind)
#4B6CAC
Tritanopia (blue-blind)
#9E5272
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9d40af;
/* rgb */ color: rgb(157, 64, 175);
/* oklch */ color: oklch(54.2% 0.185 320.8);
Tailwind
colors: {
  custom: {
    50: '#bd7bc7',
    500: '#9d40af',
    950: '#000000',
  },
}
SCSS
$custom: #9d40af;
$custom-light: #bd7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40af",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 290.27,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5418,
    "c": 0.18497,
    "h": 320.8
  },
  "luminance": 0.1393
}

Semantic roles & 50–950 ramp

primary
#9D40AF
secondary
#92C388
accent
#D65267
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9D40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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