#7E126C#7E126C

#7E126C is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.3% C 0.168 H 336.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#7E126C
RGBrgb(126, 18, 108)
HSLhsl(310, 75%, 28%)
HSVhsv(310, 86%, 49%)
CMYKcmyk(0%, 85.7%, 14.3%, 50.6%)
CIE-LABlab(29.29, 52.28, -24.57)
CIE-LCHlch(29.29, 57.76, 334.82°)
OKLaboklab(41.29% 0.154 -0.0671)
OKLCHoklch(41.29% 0.168 336.5)
XYZxyz(11.5275, 5.9521, 14.7262)
Luminance0.0595 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E126C #127E24
analogous
#5A127E #7E126C #7E1236
triadic
#7E126C #6C7E12 #126C7E
tetradic
#7E126C #7E5A12 #127E24 #12367E
square
#7E126C #7E5A12 #127E24 #12367E
split-complementary
#7E126C #367E12 #127E5A
monochromatic
#1B0417 #480A3E #7E126C #B41A9A #E12AC2

Accessibility & contrast

On white

9.59
#7E126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7E126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E126C
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E126C#FFFFFF#000000##FFFFFF
##7E126C1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153B6E
Deuteranopia (green-blind)
#3E4B6A
Tritanopia (blue-blind)
#851C40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e126c;
/* rgb */ color: rgb(126, 18, 108);
/* oklch */ color: oklch(41.3% 0.168 336.5);
Tailwind
colors: {
  custom: {
    50: '#a76096',
    500: '#7e126c',
    950: '#000000',
  },
}
SCSS
$custom: #7e126c;
$custom-light: #a76096;
$custom-dark: #000000;
JSON
{
  "hex": "#7e126c",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 310,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41287,
    "c": 0.16794,
    "h": 336.5
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#7E126C
secondary
#38B44D
accent
#F25536
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7E126C

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

Preview Lab → · Contrast checker → · Palette generator →

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