#9D1C98#9D1C98

#9D1C98 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.6% C 0.207 H 330.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#9D1C98
RGBrgb(157, 28, 152)
HSLhsl(302, 70%, 36%)
HSVhsv(302, 82%, 62%)
CMYKcmyk(0%, 82.2%, 3.2%, 38.4%)
CIE-LABlab(38.32, 63.20, -37.39)
CIE-LCHlch(38.32, 73.44, 329.39°)
OKLaboklab(49.58% 0.1789 -0.1035)
OKLCHoklch(49.58% 0.207 330)
XYZxyz(19.9873, 10.2672, 30.6288)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1C98 #1C9D21
analogous
#621C9D #9D1C98 #9D1C58
triadic
#9D1C98 #989D1C #1C989D
tetradic
#9D1C98 #9D621C #1C9D21 #1C589D
square
#9D1C98 #9D621C #1C9D21 #1C589D
split-complementary
#9D1C98 #589D1C #1C9D62
monochromatic
#350933 #691366 #9D1C98 #D125CA #E053DB

Accessibility & contrast

On white

6.88
#9D1C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9D1C98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1C98
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1C98#FFFFFF#000000##FFFFFF
##9D1C981.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#476095
Tritanopia (blue-blind)
#A3315B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d1c98;
/* rgb */ color: rgb(157, 28, 152);
/* oklch */ color: oklch(49.6% 0.207 330.0);
Tailwind
colors: {
  custom: {
    50: '#be6ab7',
    500: '#9d1c98',
    950: '#000000',
  },
}
SCSS
$custom: #9d1c98;
$custom-light: #be6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1c98",
  "rgb": {
    "r": 157,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 302.326,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49584,
    "c": 0.20667,
    "h": 330
  },
  "luminance": 0.10266
}

Semantic roles & 50–950 ramp

primary
#9D1C98
secondary
#51C356
accent
#ED423B
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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