#9D3899#9D3899

#9D3899 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.0% C 0.177 H 329.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9D3899
RGBrgb(157, 56, 153)
HSLhsl(302, 47%, 42%)
HSVhsv(302, 64%, 62%)
CMYKcmyk(0%, 64.3%, 2.5%, 38.4%)
CIE-LABlab(41.69, 53.95, -32.67)
CIE-LCHlch(41.69, 63.08, 328.80°)
OKLaboklab(52.02% 0.152 -0.09)
OKLCHoklch(52.02% 0.177 329.4)
XYZxyz(21.0684, 12.2978, 31.3949)
Luminance0.1230 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3899 #389D3C
analogous
#6F389D #9D3899 #9D3867
triadic
#9D3899 #999D38 #38999D
tetradic
#9D3899 #9D6F38 #389D3C #38679D
square
#9D3899 #9D6F38 #389D3C #38679D
split-complementary
#9D3899 #679D38 #389D6F
monochromatic
#431841 #70286D #9D3899 #C151BD #D17ECE

Accessibility & contrast

On white

6.07
#9D3899 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9D3899 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3899
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3899#FFFFFF#000000##FFFFFF
##9D38991.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5A9C
Deuteranopia (green-blind)
#526796
Tritanopia (blue-blind)
#A24463
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d3899;
/* rgb */ color: rgb(157, 56, 153);
/* oklch */ color: oklch(52.0% 0.177 329.4);
Tailwind
colors: {
  custom: {
    50: '#bd76b7',
    500: '#9d3899',
    950: '#000000',
  },
}
SCSS
$custom: #9d3899;
$custom-light: #bd76b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3899",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 302.376,
    "s": 47.418,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5202,
    "c": 0.17664,
    "h": 329.4
  },
  "luminance": 0.12296
}

Semantic roles & 50–950 ramp

primary
#9D3899
secondary
#76BA79
accent
#D75651
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D3899

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

Preview Lab → · Contrast checker → · Palette generator →

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