#9D478E#9D478E

#9D478E is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.3% C 0.145 H 334.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9D478E
RGBrgb(157, 71, 142)
HSLhsl(310, 38%, 45%)
HSVhsv(310, 55%, 62%)
CMYKcmyk(0%, 54.8%, 9.6%, 38.4%)
CIE-LABlab(43.70, 45.15, -22.89)
CIE-LCHlch(43.70, 50.63, 333.11°)
OKLaboklab(53.32% 0.1305 -0.0621)
OKLCHoklch(53.32% 0.145 334.5)
XYZxyz(21.0404, 13.6290, 27.1084)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D478E #479D56
analogous
#81479D #9D478E #9D4763
triadic
#9D478E #8E9D47 #478E9D
tetradic
#9D478E #9D8147 #479D56 #47639D
square
#9D478E #9D8147 #479D56 #47639D
split-complementary
#9D478E #639D47 #479D81
monochromatic
#492142 #733468 #9D478E #BA67AC #CD91C3

Accessibility & contrast

On white

5.64
#9D478E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9D478E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D478E
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D478E#FFFFFF#000000##FFFFFF
##9D478E1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475F90
Deuteranopia (green-blind)
#606C8C
Tritanopia (blue-blind)
#A44C64
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9d478e;
/* rgb */ color: rgb(157, 71, 142);
/* oklch */ color: oklch(53.3% 0.145 334.5);
Tailwind
colors: {
  custom: {
    50: '#bc7eaf',
    500: '#9d478e',
    950: '#000000',
  },
}
SCSS
$custom: #9d478e;
$custom-light: #bc7eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d478e",
  "rgb": {
    "r": 157,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 310.465,
    "s": 37.719,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53322,
    "c": 0.14457,
    "h": 334.5
  },
  "luminance": 0.13628
}

Semantic roles & 50–950 ramp

primary
#9D478E
secondary
#87B990
accent
#CE6E5A
background
#FBF7FA
surface
#F7EEF4
border
#D0C9CE
text
#120A10
muted
#817C7F

Preview Lab

Preview with #9D478E

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

Preview Lab → · Contrast checker → · Palette generator →

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