#7E1168#7E1168

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

Color values

HEX#7E1168
RGBrgb(126, 17, 104)
HSLhsl(312, 76%, 28%)
HSVhsv(312, 87%, 49%)
CMYKcmyk(0%, 86.5%, 17.5%, 50.6%)
CIE-LABlab(29.00, 51.93, -22.45)
CIE-LCHlch(29.00, 56.57, 336.62°)
OKLaboklab(41.01% 0.1544 -0.061)
OKLCHoklch(41.01% 0.166 338.4)
XYZxyz(11.3036, 5.8371, 13.6254)
Luminance0.0584 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1168 #117E27
analogous
#5D117E #7E1168 #7E1131
triadic
#7E1168 #687E11 #11687E
tetradic
#7E1168 #7E5D11 #117E27 #11317E
square
#7E1168 #7E5D11 #117E27 #11317E
split-complementary
#7E1168 #317E11 #117E5D
monochromatic
#1B0416 #480A3B #7E1168 #B41895 #E227BC

Accessibility & contrast

On white

9.69
#7E1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1168
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1168#FFFFFF#000000##FFFFFF
##7E11681.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183A6A
Deuteranopia (green-blind)
#3F4A66
Tritanopia (blue-blind)
#86183D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1168;
/* rgb */ color: rgb(126, 17, 104);
/* oklch */ color: oklch(41.0% 0.166 338.4);
Tailwind
colors: {
  custom: {
    50: '#a76093',
    500: '#7e1168',
    950: '#000000',
  },
}
SCSS
$custom: #7e1168;
$custom-light: #a76093;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1168",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 312.11,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41008,
    "c": 0.16599,
    "h": 338.4
  },
  "luminance": 0.05836
}

Semantic roles & 50–950 ramp

primary
#7E1168
secondary
#37B450
accent
#F35B35
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7E1168

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

Preview Lab → · Contrast checker → · Palette generator →

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