#9F1F8D#9F1F8D

#9F1F8D is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.5% C 0.197 H 334.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9F1F8D
RGBrgb(159, 31, 141)
HSLhsl(308, 67%, 37%)
HSVhsv(308, 81%, 62%)
CMYKcmyk(0%, 80.5%, 11.3%, 37.6%)
CIE-LABlab(38.33, 61.19, -30.63)
CIE-LCHlch(38.33, 68.43, 333.40°)
OKLaboklab(49.47% 0.1786 -0.0839)
OKLCHoklch(49.47% 0.197 334.8)
XYZxyz(19.5960, 10.2758, 26.1455)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F8D #1F9F31
analogous
#711F9F #9F1F8D #9F1F4D
triadic
#9F1F8D #8D9F1F #1F8D9F
tetradic
#9F1F8D #9F711F #1F9F31 #1F4D9F
square
#9F1F8D #9F711F #1F9F31 #1F4D9F
split-complementary
#9F1F8D #4D9F1F #1F9F71
monochromatic
#390B32 #6C1560 #9F1F8D #D229BA #DF5ACC

Accessibility & contrast

On white

6.87
#9F1F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9F1F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F8D
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F8D#FFFFFF#000000##FFFFFF
##9F1F8D1.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4E90
Deuteranopia (green-blind)
#4F618A
Tritanopia (blue-blind)
#A72C56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f1f8d;
/* rgb */ color: rgb(159, 31, 141);
/* oklch */ color: oklch(49.5% 0.197 334.8);
Tailwind
colors: {
  custom: {
    50: '#bf6bae',
    500: '#9f1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f8d;
$custom-light: #bf6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f8d",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 308.438,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49466,
    "c": 0.1973,
    "h": 334.8
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

primary
#9F1F8D
secondary
#57C366
accent
#EA563E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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