#7F1242#7F1242

#7F1242 is a dark, vivid pink. Relative luminance 0.053; OKLCH L 39.6% C 0.146 H 0.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#7F1242
RGBrgb(127, 18, 66)
HSLhsl(334, 75%, 28%)
HSVhsv(334, 86%, 50%)
CMYKcmyk(0%, 85.8%, 48%, 50.2%)
CIE-LABlab(27.68, 47.39, 0.67)
CIE-LCHlch(27.68, 47.40, 0.81°)
OKLaboklab(39.57% 0.1457 0.0022)
OKLCHoklch(39.57% 0.146 0.9)
XYZxyz(9.9529, 5.3394, 5.6597)
Luminance0.0534 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1242 #127F4F
analogous
#7F1278 #7F1242 #7F1812
triadic
#7F1242 #427F12 #12427F
tetradic
#7F1242 #787F12 #127F4F #18127F
square
#7F1242 #787F12 #127F4F #18127F
split-complementary
#7F1242 #127F18 #12787F
monochromatic
#1B040E #490A26 #7F1242 #B51A5E #E12B7B

Accessibility & contrast

On white

10.16
#7F1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#7F1242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1242
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1242#FFFFFF#000000##FFFFFF
##7F12421.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3443
Deuteranopia (green-blind)
#4B4940
Tritanopia (blue-blind)
#8B0029
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f1242;
/* rgb */ color: rgb(127, 18, 66);
/* oklch */ color: oklch(39.6% 0.146 0.9);
Tailwind
colors: {
  custom: {
    50: '#a95f76',
    500: '#7f1242',
    950: '#000000',
  },
}
SCSS
$custom: #7f1242;
$custom-light: #a95f76;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1242",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 333.578,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39569,
    "c": 0.14576,
    "h": 0.9
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#7F1242
secondary
#38B57E
accent
#F29F36
background
#FBF5F7
surface
#F6EAED
border
#D0C6C8
text
#110508
muted
#80797B

Preview Lab

Preview with #7F1242

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

Preview Lab → · Contrast checker → · Palette generator →

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