#9A1F4D#9A1F4D

#9A1F4D is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.9% C 0.161 H 4.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#9A1F4D
RGBrgb(154, 31, 77)
HSLhsl(338, 66%, 36%)
HSVhsv(338, 80%, 60%)
CMYKcmyk(0%, 79.9%, 50%, 39.6%)
CIE-LABlab(34.78, 52.27, 4.34)
CIE-LCHlch(34.78, 52.45, 4.75°)
OKLaboklab(45.87% 0.1601 0.0116)
OKLCHoklch(45.87% 0.161 4.1)
XYZxyz(15.1573, 8.3879, 7.8406)
Luminance0.0839 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F4D #1F9A6C
analogous
#9A1F8B #9A1F4D #9A2F1F
triadic
#9A1F4D #4D9A1F #1F4D9A
tetradic
#9A1F4D #8B9A1F #1F9A6C #2F1F9A
square
#9A1F4D #8B9A1F #1F9A6C #2F1F9A
split-complementary
#9A1F4D #1F9A2F #1F8B9A
monochromatic
#340A1A #671534 #9A1F4D #CD2966 #DD5689

Accessibility & contrast

On white

7.84
#9A1F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#9A1F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1F4D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F4D#FFFFFF#000000##FFFFFF
##9A1F4D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E424E
Deuteranopia (green-blind)
#5F5A4A
Tritanopia (blue-blind)
#A80033
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9a1f4d;
/* rgb */ color: rgb(154, 31, 77);
/* oklch */ color: oklch(45.9% 0.161 4.1);
Tailwind
colors: {
  custom: {
    50: '#bd687e',
    500: '#9a1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f4d;
$custom-light: #bd687e;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f4d",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 337.561,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45865,
    "c": 0.16051,
    "h": 4.1
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#9A1F4D
secondary
#54C198
accent
#E9A93E
background
#FCF6F7
surface
#F8EBEE
border
#D1C6C9
text
#130709
muted
#827A7B

Preview Lab

Preview with #9A1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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