#9D1F8D#9D1F8D

#9D1F8D is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.196 H 334.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9D1F8D
RGBrgb(157, 31, 141)
HSLhsl(308, 67%, 37%)
HSVhsv(308, 80%, 62%)
CMYKcmyk(0%, 80.3%, 10.2%, 38.4%)
CIE-LABlab(37.97, 60.75, -31.22)
CIE-LCHlch(37.97, 68.30, 332.80°)
OKLaboklab(49.14% 0.1766 -0.0856)
OKLCHoklch(49.14% 0.196 334.1)
XYZxyz(19.2025, 10.0729, 26.1271)
Luminance0.1007 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F8D #1F9D2F
analogous
#6E1F9D #9D1F8D #9D1F4E
triadic
#9D1F8D #8D9D1F #1F8D9D
tetradic
#9D1F8D #9D6E1F #1F9D2F #1F4E9D
square
#9D1F8D #9D6E1F #1F9D2F #1F4E9D
split-complementary
#9D1F8D #4E9D1F #1F9D6E
monochromatic
#370B31 #6A155F #9D1F8D #D029BB #DE58CD

Accessibility & contrast

On white

6.97
#9D1F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9D1F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F8D
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F8D#FFFFFF#000000##FFFFFF
##9D1F8D1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E90
Deuteranopia (green-blind)
#4D608A
Tritanopia (blue-blind)
#A52C56
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1f8d;
/* rgb */ color: rgb(157, 31, 141);
/* oklch */ color: oklch(49.1% 0.196 334.1);
Tailwind
colors: {
  custom: {
    50: '#be6baf',
    500: '#9d1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f8d;
$custom-light: #be6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f8d",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 307.619,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49141,
    "c": 0.19627,
    "h": 334.1
  },
  "luminance": 0.10071
}

Semantic roles & 50–950 ramp

primary
#9D1F8D
secondary
#56C264
accent
#EA543E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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