#7F1B4D#7F1B4D

#7F1B4D is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.6% C 0.141 H 355.1°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#7F1B4D
RGBrgb(127, 27, 77)
HSLhsl(330, 65%, 30%)
HSVhsv(330, 79%, 50%)
CMYKcmyk(0%, 78.7%, 39.4%, 50.2%)
CIE-LABlab(28.99, 45.89, -4.76)
CIE-LCHlch(28.99, 46.13, 354.08°)
OKLaboklab(40.65% 0.141 -0.012)
OKLCHoklch(40.65% 0.141 355.1)
XYZxyz(10.4846, 5.8330, 7.5935)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B4D #1B7F4D
analogous
#7F1B7F #7F1B4D #7F1B1B
triadic
#7F1B4D #4D7F1B #1B4D7F
tetradic
#7F1B4D #7F7F1B #1B7F4D #1B1B7F
square
#7F1B4D #7F7F1B #1B7F4D #1B1B7F
split-complementary
#7F1B4D #1B7F1B #1B7F7F
monochromatic
#1A0610 #4D102E #7F1B4D #B1266C #D63E8A

Accessibility & contrast

On white

9.69
#7F1B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7F1B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B4D
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B4D#FFFFFF#000000##FFFFFF
##7F1B4D1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F394E
Deuteranopia (green-blind)
#4B4B4B
Tritanopia (blue-blind)
#8A0E31
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f1b4d;
/* rgb */ color: rgb(127, 27, 77);
/* oklch */ color: oklch(40.6% 0.141 355.1);
Tailwind
colors: {
  custom: {
    50: '#a8627e',
    500: '#7f1b4d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b4d;
$custom-light: #a8627e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b4d",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 77
  },
  "hsl": {
    "h": 330,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40648,
    "c": 0.14146,
    "h": 355.1
  },
  "luminance": 0.05832
}

Semantic roles & 50–950 ramp

primary
#7F1B4D
secondary
#43B37B
accent
#E89440
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7F1B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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