#9F1F87#9F1F87

#9F1F87 is a mid, vivid pink. Relative luminance 0.101; OKLCH L 49.1% C 0.193 H 337.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#9F1F87
RGBrgb(159, 31, 135)
HSLhsl(311, 67%, 37%)
HSVhsv(311, 81%, 62%)
CMYKcmyk(0%, 80.5%, 15.1%, 37.6%)
CIE-LABlab(38.02, 60.31, -27.43)
CIE-LCHlch(38.02, 66.26, 335.55°)
OKLaboklab(49.15% 0.1782 -0.0747)
OKLCHoklch(49.15% 0.193 337.3)
XYZxyz(19.1616, 10.1020, 23.8577)
Luminance0.1010 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F87 #1F9F37
analogous
#771F9F #9F1F87 #9F1F47
triadic
#9F1F87 #879F1F #1F879F
tetradic
#9F1F87 #9F771F #1F9F37 #1F479F
square
#9F1F87 #9F771F #1F9F37 #1F479F
split-complementary
#9F1F87 #479F1F #1F9F77
monochromatic
#390B30 #6C155C #9F1F87 #D229B2 #DF5AC6

Accessibility & contrast

On white

6.95
#9F1F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9F1F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F87
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F87#FFFFFF#000000##FFFFFF
##9F1F871.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244D8A
Deuteranopia (green-blind)
#526084
Tritanopia (blue-blind)
#A82852
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f1f87;
/* rgb */ color: rgb(159, 31, 135);
/* oklch */ color: oklch(49.1% 0.193 337.3);
Tailwind
colors: {
  custom: {
    50: '#bf6baa',
    500: '#9f1f87',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f87;
$custom-light: #bf6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f87",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 311.25,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49146,
    "c": 0.19319,
    "h": 337.3
  },
  "luminance": 0.101
}

Semantic roles & 50–950 ramp

primary
#9F1F87
secondary
#57C36B
accent
#EA5E3E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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