#7F1B40#7F1B40

#7F1B40 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.2% C 0.137 H 3.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#7F1B40
RGBrgb(127, 27, 64)
HSLhsl(338, 65%, 30%)
HSVhsv(338, 79%, 50%)
CMYKcmyk(0%, 78.7%, 49.6%, 50.2%)
CIE-LABlab(28.56, 44.54, 3.28)
CIE-LCHlch(28.56, 44.66, 4.22°)
OKLaboklab(40.19% 0.1364 0.0089)
OKLCHoklch(40.19% 0.137 3.7)
XYZxyz(10.0706, 5.6674, 5.4131)
Luminance0.0567 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B40 #1B7F5A
analogous
#7F1B72 #7F1B40 #7F281B
triadic
#7F1B40 #407F1B #1B407F
tetradic
#7F1B40 #727F1B #1B7F5A #281B7F
square
#7F1B40 #727F1B #1B7F5A #281B7F
split-complementary
#7F1B40 #1B7F28 #1B727F
monochromatic
#1A060D #4D1027 #7F1B40 #B12659 #D63E76

Accessibility & contrast

On white

9.84
#7F1B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7F1B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B40
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B40#FFFFFF#000000##FFFFFF
##7F1B401.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333741
Deuteranopia (green-blind)
#4E4A3E
Tritanopia (blue-blind)
#8B042B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1b40;
/* rgb */ color: rgb(127, 27, 64);
/* oklch */ color: oklch(40.2% 0.137 3.7);
Tailwind
colors: {
  custom: {
    50: '#a96274',
    500: '#7f1b40',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b40;
$custom-light: #a96274;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b40",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 64
  },
  "hsl": {
    "h": 337.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40192,
    "c": 0.13669,
    "h": 3.7
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

primary
#7F1B40
secondary
#43B389
accent
#E8AA40
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #7F1B40

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

Preview Lab → · Contrast checker → · Palette generator →

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