#7F1138#7F1138

#7F1138 is a dark, vivid pink. Relative luminance 0.052; OKLCH L 39.2% C 0.144 H 7.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#7F1138
RGBrgb(127, 17, 56)
HSLhsl(339, 76%, 28%)
HSVhsv(339, 87%, 50%)
CMYKcmyk(0%, 86.6%, 55.9%, 50.2%)
CIE-LABlab(27.30, 46.77, 6.89)
CIE-LCHlch(27.30, 47.28, 8.37°)
OKLaboklab(39.19% 0.1427 0.0177)
OKLCHoklch(39.19% 0.144 7.1)
XYZxyz(9.6676, 5.1999, 4.2352)
Luminance0.0520 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1138 #117F58
analogous
#7F116F #7F1138 #7F2111
triadic
#7F1138 #387F11 #11387F
tetradic
#7F1138 #6F7F11 #117F58 #21117F
square
#7F1138 #6F7F11 #117F58 #21117F
split-complementary
#7F1138 #117F21 #116F7F
monochromatic
#1B040C #490A20 #7F1138 #B51850 #E2286A

Accessibility & contrast

On white

10.30
#7F1138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7F1138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1138
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1138#FFFFFF#000000##FFFFFF
##7F11381.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303339
Deuteranopia (green-blind)
#4D4835
Tritanopia (blue-blind)
#8B0023
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f1138;
/* rgb */ color: rgb(127, 17, 56);
/* oklch */ color: oklch(39.2% 0.144 7.1);
Tailwind
colors: {
  custom: {
    50: '#aa5e6e',
    500: '#7f1138',
    950: '#000000',
  },
}
SCSS
$custom: #7f1138;
$custom-light: #aa5e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1138",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 338.727,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39191,
    "c": 0.14383,
    "h": 7.1
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

primary
#7F1138
secondary
#37B588
accent
#F3B035
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110507
muted
#80797A

Preview Lab

Preview with #7F1138

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

Preview Lab → · Contrast checker → · Palette generator →

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