#7E126A#7E126A

#7E126A is a dark, vivid pink. Relative luminance 0.059; OKLCH L 41.2% C 0.167 H 337.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#7E126A
RGBrgb(126, 18, 106)
HSLhsl(311, 75%, 28%)
HSVhsv(311, 86%, 49%)
CMYKcmyk(0%, 85.7%, 15.9%, 50.6%)
CIE-LABlab(29.18, 51.98, -23.45)
CIE-LCHlch(29.18, 57.03, 335.72°)
OKLaboklab(41.18% 0.1538 -0.0639)
OKLCHoklch(41.18% 0.167 337.5)
XYZxyz(11.4223, 5.9100, 14.1721)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E126A #127E26
analogous
#5C127E #7E126A #7E1234
triadic
#7E126A #6A7E12 #126A7E
tetradic
#7E126A #7E5C12 #127E26 #12347E
square
#7E126A #7E5C12 #127E26 #12347E
split-complementary
#7E126A #347E12 #127E5C
monochromatic
#1B0417 #480A3D #7E126A #B41A97 #E12ABF

Accessibility & contrast

On white

9.63
#7E126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7E126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E126A
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E126A#FFFFFF#000000##FFFFFF
##7E126A1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173A6C
Deuteranopia (green-blind)
#3F4A68
Tritanopia (blue-blind)
#851A3F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e126a;
/* rgb */ color: rgb(126, 18, 106);
/* oklch */ color: oklch(41.2% 0.167 337.5);
Tailwind
colors: {
  custom: {
    50: '#a76095',
    500: '#7e126a',
    950: '#000000',
  },
}
SCSS
$custom: #7e126a;
$custom-light: #a76095;
$custom-dark: #000000;
JSON
{
  "hex": "#7e126a",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 311.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41176,
    "c": 0.16655,
    "h": 337.5
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#7E126A
secondary
#38B44F
accent
#F25936
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7E126A

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

Preview Lab → · Contrast checker → · Palette generator →

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