#9D198C#9D198C

#9D198C is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.7% C 0.201 H 334.5°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#9D198C
RGBrgb(157, 25, 140)
HSLhsl(308, 73%, 36%)
HSVhsv(308, 84%, 62%)
CMYKcmyk(0%, 84.1%, 10.8%, 38.4%)
CIE-LABlab(37.41, 62.09, -31.51)
CIE-LCHlch(37.41, 69.62, 333.09°)
OKLaboklab(48.72% 0.181 -0.0864)
OKLCHoklch(48.72% 0.201 334.5)
XYZxyz(18.9861, 9.7586, 25.6895)
Luminance0.0976 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D198C #199D2A
analogous
#6C199D #9D198C #9D194A
triadic
#9D198C #8C9D19 #198C9D
tetradic
#9D198C #9D6C19 #199D2A #194A9D
square
#9D198C #9D6C19 #199D2A #194A9D
split-complementary
#9D198C #4A9D19 #199D6C
monochromatic
#33082E #68115D #9D198C #D221BB #E34ED0

Accessibility & contrast

On white

7.12
#9D198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9D198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D198C
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D198C#FFFFFF#000000##FFFFFF
##9D198C1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164C8F
Deuteranopia (green-blind)
#4C5F89
Tritanopia (blue-blind)
#A52854
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d198c;
/* rgb */ color: rgb(157, 25, 140);
/* oklch */ color: oklch(48.7% 0.201 334.5);
Tailwind
colors: {
  custom: {
    50: '#be69ae',
    500: '#9d198c',
    950: '#000000',
  },
}
SCSS
$custom: #9d198c;
$custom-light: #be69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d198c",
  "rgb": {
    "r": 157,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 307.727,
    "s": 72.527,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48719,
    "c": 0.20052,
    "h": 334.5
  },
  "luminance": 0.09757
}

Semantic roles & 50–950 ramp

primary
#9D198C
secondary
#4DC55C
accent
#EF5039
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D198C

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

Preview Lab → · Contrast checker → · Palette generator →

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