#9D1997#9D1997

#9D1997 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.4% C 0.208 H 330.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#9D1997
RGBrgb(157, 25, 151)
HSLhsl(303, 73%, 36%)
HSVhsv(303, 84%, 62%)
CMYKcmyk(0%, 84.1%, 3.8%, 38.4%)
CIE-LABlab(38.02, 63.74, -37.26)
CIE-LCHlch(38.02, 73.83, 329.69°)
OKLaboklab(49.35% 0.181 -0.103)
OKLCHoklch(49.35% 0.208 330.3)
XYZxyz(19.8381, 10.0994, 30.1767)
Luminance0.1010 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1997 #199D1F
analogous
#61199D #9D1997 #9D1955
triadic
#9D1997 #979D19 #19979D
tetradic
#9D1997 #9D6119 #199D1F #19559D
square
#9D1997 #9D6119 #199D1F #19559D
split-complementary
#9D1997 #559D19 #199D61
monochromatic
#330831 #681164 #9D1997 #D221CA #E34EDC

Accessibility & contrast

On white

6.95
#9D1997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9D1997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1997
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1997#FFFFFF#000000##FFFFFF
##9D19971.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#465F94
Tritanopia (blue-blind)
#A32F5A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1997;
/* rgb */ color: rgb(157, 25, 151);
/* oklch */ color: oklch(49.4% 0.208 330.3);
Tailwind
colors: {
  custom: {
    50: '#be6ab6',
    500: '#9d1997',
    950: '#000000',
  },
}
SCSS
$custom: #9d1997;
$custom-light: #be6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1997",
  "rgb": {
    "r": 157,
    "g": 25,
    "b": 151
  },
  "hsl": {
    "h": 302.727,
    "s": 72.527,
    "l": 35.686
  },
  "oklch": {
    "l": 0.49354,
    "c": 0.20824,
    "h": 330.3
  },
  "luminance": 0.10098
}

Semantic roles & 50–950 ramp

primary
#9D1997
secondary
#4DC552
accent
#EF4139
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9D1997

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

Preview Lab → · Contrast checker → · Palette generator →

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