#7E1256#7E1256

#7E1256 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.2% C 0.154 H 348.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#7E1256
RGBrgb(126, 18, 86)
HSLhsl(322, 75%, 28%)
HSVhsv(322, 86%, 49%)
CMYKcmyk(0%, 85.7%, 31.7%, 50.6%)
CIE-LABlab(28.22, 49.30, -11.89)
CIE-LCHlch(28.22, 50.71, 346.44°)
OKLaboklab(40.17% 0.1508 -0.0313)
OKLCHoklch(40.17% 0.154 348.3)
XYZxyz(10.5008, 5.5414, 9.3189)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1256 #127E3A
analogous
#70127E #7E1256 #7E1220
triadic
#7E1256 #567E12 #12567E
tetradic
#7E1256 #7E7012 #127E3A #12207E
square
#7E1256 #7E7012 #127E3A #12207E
split-complementary
#7E1256 #207E12 #127E70
monochromatic
#1B0412 #480A31 #7E1256 #B41A7B #E12A9D

Accessibility & contrast

On white

9.96
#7E1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1256
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1256#FFFFFF#000000##FFFFFF
##7E12561.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263758
Deuteranopia (green-blind)
#464954
Tritanopia (blue-blind)
#880A33
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1256;
/* rgb */ color: rgb(126, 18, 86);
/* oklch */ color: oklch(40.2% 0.154 348.3);
Tailwind
colors: {
  custom: {
    50: '#a85f85',
    500: '#7e1256',
    950: '#000000',
  },
}
SCSS
$custom: #7e1256;
$custom-light: #a85f85;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1256",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 322.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40173,
    "c": 0.15401,
    "h": 348.3
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#7E1256
secondary
#38B466
accent
#F27C36
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1256

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

Preview Lab → · Contrast checker → · Palette generator →

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