#9F1F82#9F1F82

#9F1F82 is a mid, vivid pink. Relative luminance 0.100; OKLCH L 48.9% C 0.190 H 339.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#9F1F82
RGBrgb(159, 31, 130)
HSLhsl(314, 67%, 37%)
HSVhsv(314, 81%, 62%)
CMYKcmyk(0%, 80.5%, 18.2%, 37.6%)
CIE-LABlab(37.78, 59.61, -24.72)
CIE-LCHlch(37.78, 64.53, 337.48°)
OKLaboklab(48.89% 0.1777 -0.0669)
OKLCHoklch(48.89% 0.19 339.4)
XYZxyz(18.8179, 9.9645, 22.0471)
Luminance0.0996 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F82 #1F9F3C
analogous
#7C1F9F #9F1F82 #9F1F42
triadic
#9F1F82 #829F1F #1F829F
tetradic
#9F1F82 #9F7C1F #1F9F3C #1F429F
square
#9F1F82 #9F7C1F #1F9F3C #1F429F
split-complementary
#9F1F82 #429F1F #1F9F7C
monochromatic
#390B2E #6C1558 #9F1F82 #D229AC #DF5AC1

Accessibility & contrast

On white

7.02
#9F1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9F1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F1F82
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F82#FFFFFF#000000##FFFFFF
##9F1F821.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284C85
Deuteranopia (green-blind)
#54607F
Tritanopia (blue-blind)
#A9254F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f1f82;
/* rgb */ color: rgb(159, 31, 130);
/* oklch */ color: oklch(48.9% 0.190 339.4);
Tailwind
colors: {
  custom: {
    50: '#bf6ba6',
    500: '#9f1f82',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f82;
$custom-light: #bf6ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f82",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 313.594,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48888,
    "c": 0.18987,
    "h": 339.4
  },
  "luminance": 0.09963
}

Semantic roles & 50–950 ramp

primary
#9F1F82
secondary
#57C36F
accent
#EA653E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9F1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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