#7F1842#7F1842

#7F1842 is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.0% C 0.140 H 1.8°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#7F1842
RGBrgb(127, 24, 66)
HSLhsl(336, 68%, 30%)
HSVhsv(336, 81%, 50%)
CMYKcmyk(0%, 81.1%, 48%, 50.2%)
CIE-LABlab(28.27, 45.70, 1.53)
CIE-LCHlch(28.27, 45.73, 1.92°)
OKLaboklab(40% 0.1403 0.0044)
OKLCHoklch(40% 0.14 1.8)
XYZxyz(10.0632, 5.5600, 5.6965)
Luminance0.0556 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1842 #187F55
analogous
#7F1876 #7F1842 #7F2218
triadic
#7F1842 #427F18 #18427F
tetradic
#7F1842 #767F18 #187F55 #22187F
square
#7F1842 #767F18 #187F55 #22187F
split-complementary
#7F1842 #187F22 #18767F
monochromatic
#1A050D #4C0E27 #7F1842 #B2225D #D9387A

Accessibility & contrast

On white

9.94
#7F1842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7F1842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1842
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1842#FFFFFF#000000##FFFFFF
##7F18421.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313643
Deuteranopia (green-blind)
#4D4A40
Tritanopia (blue-blind)
#8A002B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1842;
/* rgb */ color: rgb(127, 24, 66);
/* oklch */ color: oklch(40.0% 0.140 1.8);
Tailwind
colors: {
  custom: {
    50: '#a96176',
    500: '#7f1842',
    950: '#000000',
  },
}
SCSS
$custom: #7f1842;
$custom-light: #a96176;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1842",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 66
  },
  "hsl": {
    "h": 335.534,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.40003,
    "c": 0.14035,
    "h": 1.8
  },
  "luminance": 0.05559
}

Semantic roles & 50–950 ramp

primary
#7F1842
secondary
#3FB384
accent
#EBA43D
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110508
muted
#807A7B

Preview Lab

Preview with #7F1842

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

Preview Lab → · Contrast checker → · Palette generator →

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