#9D1D98#9D1D98

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

Color values

HEX#9D1D98
RGBrgb(157, 29, 152)
HSLhsl(302, 69%, 36%)
HSVhsv(302, 82%, 62%)
CMYKcmyk(0%, 81.5%, 3.2%, 38.4%)
CIE-LABlab(38.40, 62.96, -37.26)
CIE-LCHlch(38.40, 73.16, 329.38°)
OKLaboklab(49.65% 0.1782 -0.1031)
OKLCHoklch(49.65% 0.206 330)
XYZxyz(20.0114, 10.3154, 30.6368)
Luminance0.1031 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1D98 #1D9D22
analogous
#621D9D #9D1D98 #9D1D58
triadic
#9D1D98 #989D1D #1D989D
tetradic
#9D1D98 #9D621D #1D9D22 #1D589D
square
#9D1D98 #9D621D #1D9D22 #1D589D
split-complementary
#9D1D98 #589D1D #1D9D62
monochromatic
#360A34 #691366 #9D1D98 #D127CA #E055DA

Accessibility & contrast

On white

6.86
#9D1D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9D1D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1D98
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1D98#FFFFFF#000000##FFFFFF
##9D1D981.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509B
Deuteranopia (green-blind)
#476095
Tritanopia (blue-blind)
#A3325B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d1d98;
/* rgb */ color: rgb(157, 29, 152);
/* oklch */ color: oklch(49.6% 0.206 330.0);
Tailwind
colors: {
  custom: {
    50: '#be6bb7',
    500: '#9d1d98',
    950: '#000000',
  },
}
SCSS
$custom: #9d1d98;
$custom-light: #be6bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1d98",
  "rgb": {
    "r": 157,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 302.344,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49645,
    "c": 0.20587,
    "h": 330
  },
  "luminance": 0.10314
}

Semantic roles & 50–950 ramp

primary
#9D1D98
secondary
#53C357
accent
#EC433C
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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