#9D178C#9D178C

#9D178C is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.6% C 0.202 H 334.5°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#9D178C
RGBrgb(157, 23, 140)
HSLhsl(308, 74%, 35%)
HSVhsv(308, 85%, 62%)
CMYKcmyk(0%, 85.4%, 10.8%, 38.4%)
CIE-LABlab(37.25, 62.52, -31.74)
CIE-LCHlch(37.25, 70.12, 333.08°)
OKLaboklab(48.61% 0.1823 -0.0871)
OKLCHoklch(48.61% 0.202 334.5)
XYZxyz(18.9449, 9.6761, 25.6758)
Luminance0.0967 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D178C #179D28
analogous
#6B179D #9D178C #9D1749
triadic
#9D178C #8C9D17 #178C9D
tetradic
#9D178C #9D6B17 #179D28 #17499D
square
#9D178C #9D6B17 #179D28 #17499D
split-complementary
#9D178C #499D17 #179D6B
monochromatic
#32072D #680F5C #9D178C #D21FBC #E44AD1

Accessibility & contrast

On white

7.16
#9D178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#9D178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D178C
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D178C#FFFFFF#000000##FFFFFF
##9D178C1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134C8F
Deuteranopia (green-blind)
#4C5E89
Tritanopia (blue-blind)
#A52753
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d178c;
/* rgb */ color: rgb(157, 23, 140);
/* oklch */ color: oklch(48.6% 0.202 334.5);
Tailwind
colors: {
  custom: {
    50: '#be68ae',
    500: '#9d178c',
    950: '#000000',
  },
}
SCSS
$custom: #9d178c;
$custom-light: #be68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d178c",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 307.612,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48611,
    "c": 0.20198,
    "h": 334.5
  },
  "luminance": 0.09674
}

Semantic roles & 50–950 ramp

primary
#9D178C
secondary
#4AC65A
accent
#F14E37
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D178C

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

Preview Lab → · Contrast checker → · Palette generator →

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