#9D3E8A#9D3E8A

#9D3E8A is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.0% C 0.156 H 336.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9D3E8A
RGBrgb(157, 62, 138)
HSLhsl(312, 43%, 43%)
HSVhsv(312, 61%, 62%)
CMYKcmyk(0%, 60.5%, 12.1%, 38.4%)
CIE-LABlab(41.92, 48.79, -23.22)
CIE-LCHlch(41.92, 54.03, 334.55°)
OKLaboklab(51.96% 0.1424 -0.063)
OKLCHoklch(51.96% 0.156 336.1)
XYZxyz(20.2149, 12.4499, 25.3782)
Luminance0.1245 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3E8A #3E9D51
analogous
#803E9D #9D3E8A #9D3E5A
triadic
#9D3E8A #8A9D3E #3E8A9D
tetradic
#9D3E8A #9D803E #3E9D51 #3E5A9D
square
#9D3E8A #9D803E #3E9D51 #3E5A9D
split-complementary
#9D3E8A #5A9D3E #3E9D80
monochromatic
#451B3D #712D63 #9D3E8A #BE5AAA #CF86C1

Accessibility & contrast

On white

6.02
#9D3E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9D3E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3E8A
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3E8A#FFFFFF#000000##FFFFFF
##9D3E8A1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5A8C
Deuteranopia (green-blind)
#5C6888
Tritanopia (blue-blind)
#A5435E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d3e8a;
/* rgb */ color: rgb(157, 62, 138);
/* oklch */ color: oklch(52.0% 0.156 336.1);
Tailwind
colors: {
  custom: {
    50: '#bd79ac',
    500: '#9d3e8a',
    950: '#000000',
  },
}
SCSS
$custom: #9d3e8a;
$custom-light: #bd79ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3e8a",
  "rgb": {
    "r": 157,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 312,
    "s": 43.379,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51957,
    "c": 0.15568,
    "h": 336.1
  },
  "luminance": 0.12448
}

Semantic roles & 50–950 ramp

primary
#9D3E8A
secondary
#7DBA89
accent
#D36E55
background
#FBF7FA
surface
#F7EEF4
border
#D0C9CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9D3E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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