#9F1F88#9F1F88

#9F1F88 is a mid, vivid pink. Relative luminance 0.101; OKLCH L 49.2% C 0.194 H 336.8°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#9F1F88
RGBrgb(159, 31, 136)
HSLhsl(311, 67%, 37%)
HSVhsv(311, 81%, 62%)
CMYKcmyk(0%, 80.5%, 14.5%, 37.6%)
CIE-LABlab(38.08, 60.46, -27.96)
CIE-LCHlch(38.08, 66.61, 335.18°)
OKLaboklab(49.2% 0.1783 -0.0762)
OKLCHoklch(49.2% 0.194 336.8)
XYZxyz(19.2324, 10.1303, 24.2302)
Luminance0.1013 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F88 #1F9F36
analogous
#761F9F #9F1F88 #9F1F48
triadic
#9F1F88 #889F1F #1F889F
tetradic
#9F1F88 #9F761F #1F9F36 #1F489F
square
#9F1F88 #9F761F #1F9F36 #1F489F
split-complementary
#9F1F88 #489F1F #1F9F76
monochromatic
#390B30 #6C155C #9F1F88 #D229B4 #DF5AC7

Accessibility & contrast

On white

6.94
#9F1F88 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9F1F88 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F88
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F88#FFFFFF#000000##FFFFFF
##9F1F881.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234D8B
Deuteranopia (green-blind)
#516085
Tritanopia (blue-blind)
#A82953
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f1f88;
/* rgb */ color: rgb(159, 31, 136);
/* oklch */ color: oklch(49.2% 0.194 336.8);
Tailwind
colors: {
  custom: {
    50: '#bf6bab',
    500: '#9f1f88',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f88;
$custom-light: #bf6bab;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f88",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 310.781,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49198,
    "c": 0.19386,
    "h": 336.8
  },
  "luminance": 0.10128
}

Semantic roles & 50–950 ramp

primary
#9F1F88
secondary
#57C36A
accent
#EA5D3E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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