#9D1F91#9D1F91

#9D1F91 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.4% C 0.199 H 332.6°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9D1F91
RGBrgb(157, 31, 145)
HSLhsl(306, 67%, 37%)
HSVhsv(306, 80%, 62%)
CMYKcmyk(0%, 80.3%, 7.6%, 38.4%)
CIE-LABlab(38.19, 61.35, -33.33)
CIE-LCHlch(38.19, 69.82, 331.48°)
OKLaboklab(49.36% 0.1767 -0.0917)
OKLCHoklch(49.36% 0.199 332.6)
XYZxyz(19.5055, 10.1941, 27.7229)
Luminance0.1019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F91 #1F9D2B
analogous
#6A1F9D #9D1F91 #9D1F52
triadic
#9D1F91 #919D1F #1F919D
tetradic
#9D1F91 #9D6A1F #1F9D2B #1F529D
square
#9D1F91 #9D6A1F #1F9D2B #1F529D
split-complementary
#9D1F91 #529D1F #1F9D6A
monochromatic
#370B33 #6A1562 #9D1F91 #D029C0 #DE58D1

Accessibility & contrast

On white

6.91
#9D1F91 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9D1F91 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F91
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F91#FFFFFF#000000##FFFFFF
##9D1F911.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164F94
Deuteranopia (green-blind)
#4B608E
Tritanopia (blue-blind)
#A42F58
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d1f91;
/* rgb */ color: rgb(157, 31, 145);
/* oklch */ color: oklch(49.4% 0.199 332.6);
Tailwind
colors: {
  custom: {
    50: '#be6bb1',
    500: '#9d1f91',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f91;
$custom-light: #be6bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f91",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 305.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49365,
    "c": 0.1991,
    "h": 332.6
  },
  "luminance": 0.10192
}

Semantic roles & 50–950 ramp

primary
#9D1F91
secondary
#56C260
accent
#EA4E3E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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