#9D1F99#9D1F99

#9D1F99 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.205 H 329.6°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#9D1F99
RGBrgb(157, 31, 153)
HSLhsl(302, 67%, 37%)
HSVhsv(302, 80%, 62%)
CMYKcmyk(0%, 80.3%, 2.5%, 38.4%)
CIE-LABlab(38.64, 62.60, -37.49)
CIE-LCHlch(38.64, 72.97, 329.08°)
OKLaboklab(49.83% 0.1767 -0.1038)
OKLCHoklch(49.83% 0.205 329.6)
XYZxyz(20.1443, 10.4496, 31.0868)
Luminance0.1045 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F99 #1F9D23
analogous
#621F9D #9D1F99 #9D1F5A
triadic
#9D1F99 #999D1F #1F999D
tetradic
#9D1F99 #9D621F #1F9D23 #1F5A9D
square
#9D1F99 #9D621F #1F9D23 #1F5A9D
split-complementary
#9D1F99 #5A9D1F #1F9D62
monochromatic
#370B35 #6A1567 #9D1F99 #D029CB #DE58DA

Accessibility & contrast

On white

6.80
#9D1F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9D1F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F99
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F99#FFFFFF#000000##FFFFFF
##9D1F991.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02509C
Deuteranopia (green-blind)
#476196
Tritanopia (blue-blind)
#A3335C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d1f99;
/* rgb */ color: rgb(157, 31, 153);
/* oklch */ color: oklch(49.8% 0.205 329.6);
Tailwind
colors: {
  custom: {
    50: '#be6bb7',
    500: '#9d1f99',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f99;
$custom-light: #be6bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f99",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 301.905,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4983,
    "c": 0.20492,
    "h": 329.6
  },
  "luminance": 0.10448
}

Semantic roles & 50–950 ramp

primary
#9D1F99
secondary
#56C259
accent
#EA433E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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