#9D40AE#9D40AE

#9D40AE is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.1% C 0.184 H 321.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9D40AE
RGBrgb(157, 64, 174)
HSLhsl(291, 46%, 47%)
HSVhsv(291, 63%, 68%)
CMYKcmyk(9.8%, 63.2%, 0%, 31.8%)
CIE-LABlab(44.08, 54.32, -41.41)
CIE-LCHlch(44.08, 68.30, 322.68°)
OKLaboklab(54.12% 0.1434 -0.1154)
OKLCHoklch(54.12% 0.184 321.2)
XYZxyz(23.3771, 13.8920, 41.4863)
Luminance0.1389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40AE #51AE40
analogous
#6640AE #9D40AE #AE4088
triadic
#9D40AE #AE9D40 #40AE9D
tetradic
#9D40AE #AE6640 #51AE40 #4088AE
square
#9D40AE #AE6640 #51AE40 #4088AE
split-complementary
#9D40AE #88AE40 #40AE66
monochromatic
#4C1F55 #753081 #9D40AE #B765C6 #CC92D7

Accessibility & contrast

On white

5.56
#9D40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9D40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40AE
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40AE#FFFFFF#000000##FFFFFF
##9D40AE1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2562B1
Deuteranopia (green-blind)
#4C6CAB
Tritanopia (blue-blind)
#9E5271
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9d40ae;
/* rgb */ color: rgb(157, 64, 174);
/* oklch */ color: oklch(54.1% 0.184 321.2);
Tailwind
colors: {
  custom: {
    50: '#bd7bc7',
    500: '#9d40ae',
    950: '#000000',
  },
}
SCSS
$custom: #9d40ae;
$custom-light: #bd7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40ae",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 290.727,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54121,
    "c": 0.18404,
    "h": 321.2
  },
  "luminance": 0.13891
}

Semantic roles & 50–950 ramp

primary
#9D40AE
secondary
#91C288
accent
#D65266
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9D40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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