#9D508E#9D508E

#9D508E is a mid, vivid pink. Relative luminance 0.149; OKLCH L 54.6% C 0.129 H 335.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9D508E
RGBrgb(157, 80, 142)
HSLhsl(312, 32%, 46%)
HSVhsv(312, 49%, 62%)
CMYKcmyk(0%, 49%, 9.6%, 38.4%)
CIE-LABlab(45.44, 40.55, -20.20)
CIE-LCHlch(45.44, 45.30, 333.52°)
OKLaboklab(54.62% 0.1171 -0.0546)
OKLCHoklch(54.62% 0.129 335)
XYZxyz(21.6558, 14.8598, 27.3135)
Luminance0.1486 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D508E #509D5F
analogous
#86509D #9D508E #9D5068
triadic
#9D508E #8E9D50 #508E9D
tetradic
#9D508E #9D8650 #509D5F #50689D
square
#9D508E #9D8650 #509D5F #50689D
split-complementary
#9D508E #689D50 #509D86
monochromatic
#4C2745 #743B69 #9D508E #B873AA #CC9BC3

Accessibility & contrast

On white

5.29
#9D508E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9D508E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D508E
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D508E#FFFFFF#000000##FFFFFF
##9D508E1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506490
Deuteranopia (green-blind)
#65708C
Tritanopia (blue-blind)
#A45468
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9d508e;
/* rgb */ color: rgb(157, 80, 142);
/* oklch */ color: oklch(54.6% 0.129 335.0);
Tailwind
colors: {
  custom: {
    50: '#bc84af',
    500: '#9d508e',
    950: '#000000',
  },
}
SCSS
$custom: #9d508e;
$custom-light: #bc84af;
$custom-dark: #000000;
JSON
{
  "hex": "#9d508e",
  "rgb": {
    "r": 157,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 311.688,
    "s": 32.489,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54616,
    "c": 0.12924,
    "h": 335
  },
  "luminance": 0.14858
}

Semantic roles & 50–950 ramp

primary
#9D508E
secondary
#90B998
accent
#C9745F
background
#FBF8FA
surface
#F7EFF4
border
#D0CACE
text
#120B10
muted
#817C7F

Preview Lab

Preview with #9D508E

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

Preview Lab → · Contrast checker → · Palette generator →

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