#9D178D#9D178D

#9D178D is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.7% C 0.203 H 334.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9D178D
RGBrgb(157, 23, 141)
HSLhsl(307, 74%, 35%)
HSVhsv(307, 85%, 62%)
CMYKcmyk(0%, 85.4%, 10.2%, 38.4%)
CIE-LABlab(37.31, 62.67, -32.27)
CIE-LCHlch(37.31, 70.49, 332.75°)
OKLaboklab(48.67% 0.1823 -0.0886)
OKLCHoklch(48.67% 0.203 334.1)
XYZxyz(19.0190, 9.7057, 26.0659)
Luminance0.0970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D178D #179D27
analogous
#6A179D #9D178D #9D174A
triadic
#9D178D #8D9D17 #178D9D
tetradic
#9D178D #9D6A17 #179D27 #174A9D
square
#9D178D #9D6A17 #179D27 #174A9D
split-complementary
#9D178D #4A9D17 #179D6A
monochromatic
#32072D #680F5D #9D178D #D21FBD #E44AD2

Accessibility & contrast

On white

7.14
#9D178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9D178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D178D
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D178D#FFFFFF#000000##FFFFFF
##9D178D1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#4B5E8A
Tritanopia (blue-blind)
#A52854
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d178d;
/* rgb */ color: rgb(157, 23, 141);
/* oklch */ color: oklch(48.7% 0.203 334.1);
Tailwind
colors: {
  custom: {
    50: '#be68af',
    500: '#9d178d',
    950: '#000000',
  },
}
SCSS
$custom: #9d178d;
$custom-light: #be68af;
$custom-dark: #000000;
JSON
{
  "hex": "#9d178d",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 307.164,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48667,
    "c": 0.20266,
    "h": 334.1
  },
  "luminance": 0.09704
}

Semantic roles & 50–950 ramp

primary
#9D178D
secondary
#4AC659
accent
#F14D37
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D178D

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

Preview Lab → · Contrast checker → · Palette generator →

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