#9F1F7E#9F1F7E

#9F1F7E is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.7% C 0.187 H 341.1°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#9F1F7E
RGBrgb(159, 31, 126)
HSLhsl(315, 67%, 37%)
HSVhsv(315, 81%, 62%)
CMYKcmyk(0%, 80.5%, 20.8%, 37.6%)
CIE-LABlab(37.59, 59.07, -22.53)
CIE-LCHlch(37.59, 63.22, 339.12°)
OKLaboklab(48.69% 0.1772 -0.0607)
OKLCHoklch(48.69% 0.187 341.1)
XYZxyz(18.5546, 9.8592, 20.6605)
Luminance0.0986 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F7E #1F9F40
analogous
#801F9F #9F1F7E #9F1F3E
triadic
#9F1F7E #7E9F1F #1F7E9F
tetradic
#9F1F7E #9F801F #1F9F40 #1F3E9F
square
#9F1F7E #9F801F #1F9F40 #1F3E9F
split-complementary
#9F1F7E #3E9F1F #1F9F80
monochromatic
#390B2D #6C1555 #9F1F7E #D229A7 #DF5ABC

Accessibility & contrast

On white

7.07
#9F1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#9F1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F1F7E
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F7E#FFFFFF#000000##FFFFFF
##9F1F7E1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#55607B
Tritanopia (blue-blind)
#A9224D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9f1f7e;
/* rgb */ color: rgb(159, 31, 126);
/* oklch */ color: oklch(48.7% 0.187 341.1);
Tailwind
colors: {
  custom: {
    50: '#bf6ba3',
    500: '#9f1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f7e;
$custom-light: #bf6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f7e",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 315.469,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4869,
    "c": 0.18731,
    "h": 341.1
  },
  "luminance": 0.09857
}

Semantic roles & 50–950 ramp

primary
#9F1F7E
secondary
#57C373
accent
#EA6A3E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9F1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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