#7E1166#7E1166

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

Color values

HEX#7E1166
RGBrgb(126, 17, 102)
HSLhsl(313, 76%, 28%)
HSVhsv(313, 87%, 49%)
CMYKcmyk(0%, 86.5%, 19%, 50.6%)
CIE-LABlab(28.89, 51.64, -21.32)
CIE-LCHlch(28.89, 55.87, 337.57°)
OKLaboklab(40.9% 0.1542 -0.0578)
OKLCHoklch(40.9% 0.165 339.5)
XYZxyz(11.2032, 5.7970, 13.0967)
Luminance0.0580 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1166 #117E29
analogous
#5F117E #7E1166 #7E112F
triadic
#7E1166 #667E11 #11667E
tetradic
#7E1166 #7E5F11 #117E29 #112F7E
square
#7E1166 #7E5F11 #117E29 #112F7E
split-complementary
#7E1166 #2F7E11 #117E5F
monochromatic
#1B0416 #480A3A #7E1166 #B41892 #E227B9

Accessibility & contrast

On white

9.73
#7E1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7E1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1166
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1166#FFFFFF#000000##FFFFFF
##7E11661.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1166;
/* rgb */ color: rgb(126, 17, 102);
/* oklch */ color: oklch(40.9% 0.165 339.5);
Tailwind
colors: {
  custom: {
    50: '#a76092',
    500: '#7e1166',
    950: '#000000',
  },
}
SCSS
$custom: #7e1166;
$custom-light: #a76092;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1166",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 313.211,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.409,
    "c": 0.16465,
    "h": 339.5
  },
  "luminance": 0.05796
}

Semantic roles & 50–950 ramp

primary
#7E1166
secondary
#37B452
accent
#F35F35
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050D
muted
#7F7A7D

Preview Lab

Preview with #7E1166

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

Preview Lab → · Contrast checker → · Palette generator →

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