#9D1F95#9D1F95

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

Color values

HEX#9D1F95
RGBrgb(157, 31, 149)
HSLhsl(304, 67%, 37%)
HSVhsv(304, 80%, 62%)
CMYKcmyk(0%, 80.3%, 5.1%, 38.4%)
CIE-LABlab(38.41, 61.97, -35.42)
CIE-LCHlch(38.41, 71.38, 330.25°)
OKLaboklab(49.6% 0.1768 -0.0978)
OKLCHoklch(49.6% 0.202 331.1)
XYZxyz(19.8194, 10.3196, 29.3760)
Luminance0.1032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F95 #1F9D27
analogous
#661F9D #9D1F95 #9D1F56
triadic
#9D1F95 #959D1F #1F959D
tetradic
#9D1F95 #9D661F #1F9D27 #1F569D
square
#9D1F95 #9D661F #1F9D27 #1F569D
split-complementary
#9D1F95 #569D1F #1F9D66
monochromatic
#370B34 #6A1564 #9D1F95 #D029C6 #DE58D6

Accessibility & contrast

On white

6.85
#9D1F95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D1F95
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F95#FFFFFF#000000##FFFFFF
##9D1F951.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4F98
Deuteranopia (green-blind)
#496092
Tritanopia (blue-blind)
#A3315A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d1f95;
/* rgb */ color: rgb(157, 31, 149);
/* oklch */ color: oklch(49.6% 0.202 331.1);
Tailwind
colors: {
  custom: {
    50: '#be6bb4',
    500: '#9d1f95',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f95;
$custom-light: #be6bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f95",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 303.81,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49595,
    "c": 0.20199,
    "h": 331.1
  },
  "luminance": 0.10318
}

Semantic roles & 50–950 ramp

primary
#9D1F95
secondary
#56C25D
accent
#EA493E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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