#7E1262#7E1262

#7E1262 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.8% C 0.161 H 341.6°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#7E1262
RGBrgb(126, 18, 98)
HSLhsl(316, 75%, 28%)
HSVhsv(316, 86%, 49%)
CMYKcmyk(0%, 85.7%, 22.2%, 50.6%)
CIE-LABlab(28.78, 50.85, -18.91)
CIE-LCHlch(28.78, 54.25, 339.60°)
OKLaboklab(40.75% 0.153 -0.0509)
OKLCHoklch(40.75% 0.161 341.6)
XYZxyz(11.0255, 5.7513, 12.0824)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1262 #127E2E
analogous
#64127E #7E1262 #7E122C
triadic
#7E1262 #627E12 #12627E
tetradic
#7E1262 #7E6412 #127E2E #122C7E
square
#7E1262 #7E6412 #127E2E #122C7E
split-complementary
#7E1262 #2C7E12 #127E64
monochromatic
#1B0415 #480A38 #7E1262 #B41A8C #E12AB1

Accessibility & contrast

On white

9.77
#7E1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7E1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1262
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1262#FFFFFF#000000##FFFFFF
##7E12621.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3964
Deuteranopia (green-blind)
#424A60
Tritanopia (blue-blind)
#86153A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1262;
/* rgb */ color: rgb(126, 18, 98);
/* oklch */ color: oklch(40.8% 0.161 341.6);
Tailwind
colors: {
  custom: {
    50: '#a7608f',
    500: '#7e1262',
    950: '#000000',
  },
}
SCSS
$custom: #7e1262;
$custom-light: #a7608f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1262",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 315.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.4075,
    "c": 0.16123,
    "h": 341.6
  },
  "luminance": 0.0575
}

Semantic roles & 50–950 ramp

primary
#7E1262
secondary
#38B458
accent
#F26736
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050C
muted
#7F7A7D

Preview Lab

Preview with #7E1262

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

Preview Lab → · Contrast checker → · Palette generator →

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