#9D198B#9D198B

#9D198B is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.7% C 0.200 H 334.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#9D198B
RGBrgb(157, 25, 139)
HSLhsl(308, 73%, 36%)
HSVhsv(308, 84%, 62%)
CMYKcmyk(0%, 84.1%, 11.5%, 38.4%)
CIE-LABlab(37.35, 61.94, -30.97)
CIE-LCHlch(37.35, 69.25, 333.43°)
OKLaboklab(48.66% 0.1809 -0.0849)
OKLCHoklch(48.66% 0.2 334.9)
XYZxyz(18.9127, 9.7292, 25.3030)
Luminance0.0973 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D198B #199D2B
analogous
#6D199D #9D198B #9D1949
triadic
#9D198B #8B9D19 #198B9D
tetradic
#9D198B #9D6D19 #199D2B #19499D
square
#9D198B #9D6D19 #199D2B #19499D
split-complementary
#9D198B #499D19 #199D6D
monochromatic
#33082E #68115C #9D198B #D221BA #E34ECE

Accessibility & contrast

On white

7.13
#9D198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D198B
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D198B#FFFFFF#000000##FFFFFF
##9D198B1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#4D5F88
Tritanopia (blue-blind)
#A52753
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d198b;
/* rgb */ color: rgb(157, 25, 139);
/* oklch */ color: oklch(48.7% 0.200 334.9);
Tailwind
colors: {
  custom: {
    50: '#be69ad',
    500: '#9d198b',
    950: '#000000',
  },
}
SCSS
$custom: #9d198b;
$custom-light: #be69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d198b",
  "rgb": {
    "r": 157,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 308.182,
    "s": 72.527,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48663,
    "c": 0.19984,
    "h": 334.9
  },
  "luminance": 0.09727
}

Semantic roles & 50–950 ramp

primary
#9D198B
secondary
#4DC55D
accent
#EF5139
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D198B

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

Preview Lab → · Contrast checker → · Palette generator →

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