#7E1266#7E1266

#7E1266 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 41.0% C 0.164 H 339.5°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#7E1266
RGBrgb(126, 18, 102)
HSLhsl(313, 75%, 28%)
HSVhsv(313, 86%, 49%)
CMYKcmyk(0%, 85.7%, 19%, 50.6%)
CIE-LABlab(28.98, 51.41, -21.19)
CIE-LCHlch(28.98, 55.60, 337.59°)
OKLaboklab(40.96% 0.1535 -0.0574)
OKLCHoklch(40.96% 0.164 339.5)
XYZxyz(11.2191, 5.8287, 13.1020)
Luminance0.0583 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1266 #127E2A
analogous
#60127E #7E1266 #7E1230
triadic
#7E1266 #667E12 #12667E
tetradic
#7E1266 #7E6012 #127E2A #12307E
square
#7E1266 #7E6012 #127E2A #12307E
split-complementary
#7E1266 #307E12 #127E60
monochromatic
#1B0416 #480A3B #7E1266 #B41A91 #E12AB8

Accessibility & contrast

On white

9.70
#7E1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7E1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1266
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1266#FFFFFF#000000##FFFFFF
##7E12661.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3A68
Deuteranopia (green-blind)
#404A64
Tritanopia (blue-blind)
#86183C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1266;
/* rgb */ color: rgb(126, 18, 102);
/* oklch */ color: oklch(41.0% 0.164 339.5);
Tailwind
colors: {
  custom: {
    50: '#a76092',
    500: '#7e1266',
    950: '#000000',
  },
}
SCSS
$custom: #7e1266;
$custom-light: #a76092;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1266",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 313.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40959,
    "c": 0.16385,
    "h": 339.5
  },
  "luminance": 0.05828
}

Semantic roles & 50–950 ramp

primary
#7E1266
secondary
#38B454
accent
#F26036
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050D
muted
#7F7A7D

Preview Lab

Preview with #7E1266

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

Preview Lab → · Contrast checker → · Palette generator →

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