#7E1246#7E1246

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

Color values

HEX#7E1246
RGBrgb(126, 18, 70)
HSLhsl(331, 75%, 28%)
HSVhsv(331, 86%, 49%)
CMYKcmyk(0%, 85.7%, 44.4%, 50.6%)
CIE-LABlab(27.61, 47.51, -2.16)
CIE-LCHlch(27.61, 47.56, 357.40°)
OKLaboklab(39.52% 0.1463 -0.0051)
OKLCHoklch(39.52% 0.146 358)
XYZxyz(9.9268, 5.3118, 6.2957)
Luminance0.0531 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1246 #127E4A
analogous
#7E127C #7E1246 #7E1412
triadic
#7E1246 #467E12 #12467E
tetradic
#7E1246 #7C7E12 #127E4A #14127E
square
#7E1246 #7C7E12 #127E4A #14127E
split-complementary
#7E1246 #127E14 #127C7E
monochromatic
#1B040F #480A28 #7E1246 #B41A64 #E12A82

Accessibility & contrast

On white

10.18
#7E1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#7E1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1246
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1246#FFFFFF#000000##FFFFFF
##7E12461.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3447
Deuteranopia (green-blind)
#4A4844
Tritanopia (blue-blind)
#89002B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1246;
/* rgb */ color: rgb(126, 18, 70);
/* oklch */ color: oklch(39.5% 0.146 358.0);
Tailwind
colors: {
  custom: {
    50: '#a85f79',
    500: '#7e1246',
    950: '#000000',
  },
}
SCSS
$custom: #7e1246;
$custom-light: #a85f79;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1246",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 331.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3952,
    "c": 0.14639,
    "h": 358
  },
  "luminance": 0.0531
}

Semantic roles & 50–950 ramp

primary
#7E1246
secondary
#38B478
accent
#F29736
background
#FAF5F7
surface
#F4EAED
border
#CEC6C8
text
#110509
muted
#80797B

Preview Lab

Preview with #7E1246

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

Preview Lab → · Contrast checker → · Palette generator →

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