#9A1F4F#9A1F4F

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

Color values

HEX#9A1F4F
RGBrgb(154, 31, 79)
HSLhsl(337, 66%, 36%)
HSVhsv(337, 80%, 60%)
CMYKcmyk(0%, 79.9%, 48.7%, 39.6%)
CIE-LABlab(34.84, 52.45, 3.13)
CIE-LCHlch(34.84, 52.54, 3.41°)
OKLaboklab(45.93% 0.1608 0.0086)
OKLCHoklch(45.93% 0.161 3)
XYZxyz(15.2290, 8.4166, 8.2183)
Luminance0.0842 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F4F #1F9A6A
analogous
#9A1F8D #9A1F4F #9A2D1F
triadic
#9A1F4F #4F9A1F #1F4F9A
tetradic
#9A1F4F #8D9A1F #1F9A6A #2D1F9A
square
#9A1F4F #8D9A1F #1F9A6A #2D1F9A
split-complementary
#9A1F4F #1F9A2D #1F8D9A
monochromatic
#340A1B #671535 #9A1F4F #CD2969 #DD568B

Accessibility & contrast

On white

7.83
#9A1F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A1F4F
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F4F#FFFFFF#000000##FFFFFF
##9A1F4F1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4350
Deuteranopia (green-blind)
#5E5B4C
Tritanopia (blue-blind)
#A80034
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9a1f4f;
/* rgb */ color: rgb(154, 31, 79);
/* oklch */ color: oklch(45.9% 0.161 3.0);
Tailwind
colors: {
  custom: {
    50: '#bd6880',
    500: '#9a1f4f',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f4f;
$custom-light: #bd6880;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f4f",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 336.585,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45926,
    "c": 0.16105,
    "h": 3
  },
  "luminance": 0.08415
}

Semantic roles & 50–950 ramp

primary
#9A1F4F
secondary
#54C196
accent
#E9A73E
background
#FCF6F7
surface
#F8EBEE
border
#D1C6C9
text
#13070A
muted
#827A7C

Preview Lab

Preview with #9A1F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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