#9D1F9C#9D1F9C

#9D1F9C is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.207 H 328.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#9D1F9C
RGBrgb(157, 31, 156)
HSLhsl(300, 67%, 37%)
HSVhsv(300, 80%, 62%)
CMYKcmyk(0%, 80.3%, 0.6%, 38.4%)
CIE-LABlab(38.81, 63.08, -39.03)
CIE-LCHlch(38.81, 74.18, 328.25°)
OKLaboklab(50.01% 0.1766 -0.1082)
OKLCHoklch(50.01% 0.207 328.5)
XYZxyz(20.3952, 10.5499, 32.4082)
Luminance0.1055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F9C #1F9D20
analogous
#5F1F9D #9D1F9C #9D1F5D
triadic
#9D1F9C #9C9D1F #1F9C9D
tetradic
#9D1F9C #9D5F1F #1F9D20 #1F5D9D
square
#9D1F9C #9D5F1F #1F9D20 #1F5D9D
split-complementary
#9D1F9C #5D9D1F #1F9D5F
monochromatic
#370B36 #6A1569 #9D1F9C #D029CF #DE58DD

Accessibility & contrast

On white

6.75
#9D1F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9D1F9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F9C
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F9C#FFFFFF#000000##FFFFFF
##9D1F9C1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519F
Deuteranopia (green-blind)
#456199
Tritanopia (blue-blind)
#A2355E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d1f9c;
/* rgb */ color: rgb(157, 31, 156);
/* oklch */ color: oklch(50.0% 0.207 328.5);
Tailwind
colors: {
  custom: {
    50: '#be6cba',
    500: '#9d1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f9c;
$custom-light: #be6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f9c",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 300.476,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.5001,
    "c": 0.20715,
    "h": 328.5
  },
  "luminance": 0.10548
}

Semantic roles & 50–950 ramp

primary
#9D1F9C
secondary
#56C257
accent
#EA3F3E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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