#9A1F5B#9A1F5B

#9A1F5B is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.3% C 0.165 H 356.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#9A1F5B
RGBrgb(154, 31, 91)
HSLhsl(331, 66%, 36%)
HSVhsv(331, 80%, 60%)
CMYKcmyk(0%, 79.9%, 40.9%, 39.6%)
CIE-LABlab(35.22, 53.61, -4.07)
CIE-LCHlch(35.22, 53.77, 355.65°)
OKLaboklab(46.33% 0.1649 -0.01)
OKLCHoklch(46.33% 0.165 356.5)
XYZxyz(15.7059, 8.6074, 10.7298)
Luminance0.0861 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F5B #1F9A5E
analogous
#9A1F99 #9A1F5B #9A211F
triadic
#9A1F5B #5B9A1F #1F5B9A
tetradic
#9A1F5B #999A1F #1F9A5E #211F9A
square
#9A1F5B #999A1F #1F9A5E #211F9A
split-complementary
#9A1F5B #1F9A21 #1F999A
monochromatic
#340A1F #67153D #9A1F5B #CD2979 #DD5698

Accessibility & contrast

On white

7.72
#9A1F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#9A1F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1F5B
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F5B#FFFFFF#000000##FFFFFF
##9A1F5B1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A445C
Deuteranopia (green-blind)
#5C5B58
Tritanopia (blue-blind)
#A7093A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9a1f5b;
/* rgb */ color: rgb(154, 31, 91);
/* oklch */ color: oklch(46.3% 0.165 356.5);
Tailwind
colors: {
  custom: {
    50: '#bd6989',
    500: '#9a1f5b',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f5b;
$custom-light: #bd6989;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f5b",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 330.732,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4633,
    "c": 0.1652,
    "h": 356.5
  },
  "luminance": 0.08605
}

Semantic roles & 50–950 ramp

primary
#9A1F5B
secondary
#54C18C
accent
#E9963E
background
#FCF6F8
surface
#F8EBF0
border
#D1C6CB
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9A1F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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