#7B1F4D#7B1F4D

#7B1F4D is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.3% C 0.133 H 354.3°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#7B1F4D
RGBrgb(123, 31, 77)
HSLhsl(330, 60%, 30%)
HSVhsv(330, 75%, 48%)
CMYKcmyk(0%, 74.8%, 37.4%, 51.8%)
CIE-LABlab(28.72, 43.29, -5.25)
CIE-LCHlch(28.72, 43.61, 353.09°)
OKLaboklab(40.31% 0.1327 -0.0133)
OKLCHoklch(40.31% 0.133 354.3)
XYZxyz(9.9985, 5.7279, 7.5988)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F4D #1F7B4D
analogous
#7B1F7B #7B1F4D #7B1F1F
triadic
#7B1F4D #4D7B1F #1F4D7B
tetradic
#7B1F4D #7B7B1F #1F7B4D #1F1F7B
square
#7B1F4D #7B7B1F #1F7B4D #1F1F7B
split-complementary
#7B1F4D #1F7B1F #1F7B7B
monochromatic
#190610 #4A132E #7B1F4D #AC2B6C #D0448A

Accessibility & contrast

On white

9.79
#7B1F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7B1F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F4D
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F4D#FFFFFF#000000##FFFFFF
##7B1F4D1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30394E
Deuteranopia (green-blind)
#4A4A4B
Tritanopia (blue-blind)
#851633
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b1f4d;
/* rgb */ color: rgb(123, 31, 77);
/* oklch */ color: oklch(40.3% 0.133 354.3);
Tailwind
colors: {
  custom: {
    50: '#a5637e',
    500: '#7b1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f4d;
$custom-light: #a5637e;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f4d",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 330,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40305,
    "c": 0.13336,
    "h": 354.3
  },
  "luminance": 0.05727
}

Semantic roles & 50–950 ramp

primary
#7B1F4D
secondary
#48AE7B
accent
#E39445
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7B1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

#7B1F4D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva