#7E1167#7E1167

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

Color values

HEX#7E1167
RGBrgb(126, 17, 103)
HSLhsl(313, 76%, 28%)
HSVhsv(313, 87%, 49%)
CMYKcmyk(0%, 86.5%, 18.3%, 50.6%)
CIE-LABlab(28.95, 51.79, -21.89)
CIE-LCHlch(28.95, 56.22, 337.09°)
OKLaboklab(40.95% 0.1543 -0.0594)
OKLCHoklch(40.95% 0.165 338.9)
XYZxyz(11.2531, 5.8169, 13.3595)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1167 #117E28
analogous
#5F117E #7E1167 #7E1130
triadic
#7E1167 #677E11 #11677E
tetradic
#7E1167 #7E5F11 #117E28 #11307E
square
#7E1167 #7E5F11 #117E28 #11307E
split-complementary
#7E1167 #307E11 #117E5F
monochromatic
#1B0416 #480A3B #7E1167 #B41893 #E227BB

Accessibility & contrast

On white

9.71
#7E1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1167
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1167#FFFFFF#000000##FFFFFF
##7E11671.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193A69
Deuteranopia (green-blind)
#404A65
Tritanopia (blue-blind)
#86183D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1167;
/* rgb */ color: rgb(126, 17, 103);
/* oklch */ color: oklch(41.0% 0.165 338.9);
Tailwind
colors: {
  custom: {
    50: '#a76092',
    500: '#7e1167',
    950: '#000000',
  },
}
SCSS
$custom: #7e1167;
$custom-light: #a76092;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1167",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 312.661,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40954,
    "c": 0.16531,
    "h": 338.9
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#7E1167
secondary
#37B451
accent
#F35D35
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7E1167

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

Preview Lab → · Contrast checker → · Palette generator →

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