#7F1246#7F1246

#7F1246 is a dark, vivid pink. Relative luminance 0.054; OKLCH L 39.7% C 0.147 H 358.4°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#7F1246
RGBrgb(127, 18, 70)
HSLhsl(331, 75%, 28%)
HSVhsv(331, 86%, 50%)
CMYKcmyk(0%, 85.8%, 44.9%, 50.2%)
CIE-LABlab(27.81, 47.78, -1.83)
CIE-LCHlch(27.81, 47.82, 357.81°)
OKLaboklab(39.71% 0.1471 -0.0042)
OKLCHoklch(39.71% 0.147 358.4)
XYZxyz(10.0750, 5.3882, 6.3027)
Luminance0.0539 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1246 #127F4B
analogous
#7F127C #7F1246 #7F1412
triadic
#7F1246 #467F12 #12467F
tetradic
#7F1246 #7C7F12 #127F4B #14127F
square
#7F1246 #7C7F12 #127F4B #14127F
split-complementary
#7F1246 #127F14 #127C7F
monochromatic
#1B040F #490A28 #7F1246 #B51A64 #E12B82

Accessibility & contrast

On white

10.11
#7F1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#7F1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1246
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1246#FFFFFF#000000##FFFFFF
##7F12461.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3547
Deuteranopia (green-blind)
#4A4944
Tritanopia (blue-blind)
#8A002B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7f1246;
/* rgb */ color: rgb(127, 18, 70);
/* oklch */ color: oklch(39.7% 0.147 358.4);
Tailwind
colors: {
  custom: {
    50: '#a95f79',
    500: '#7f1246',
    950: '#000000',
  },
}
SCSS
$custom: #7f1246;
$custom-light: #a95f79;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1246",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 331.376,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39709,
    "c": 0.14718,
    "h": 358.4
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#7F1246
secondary
#38B579
accent
#F29836
background
#FAF5F7
surface
#F5EAED
border
#CFC6C8
text
#110509
muted
#80797B

Preview Lab

Preview with #7F1246

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

Preview Lab → · Contrast checker → · Palette generator →

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