#7E1161#7E1161

#7E1161 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.6% C 0.161 H 342.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#7E1161
RGBrgb(126, 17, 97)
HSLhsl(316, 76%, 28%)
HSVhsv(316, 87%, 49%)
CMYKcmyk(0%, 86.5%, 23%, 50.6%)
CIE-LABlab(28.64, 50.95, -18.46)
CIE-LCHlch(28.64, 54.19, 340.08°)
OKLaboklab(40.64% 0.1536 -0.0496)
OKLCHoklch(40.64% 0.161 342.1)
XYZxyz(10.9627, 5.7008, 11.8300)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1161 #117E2E
analogous
#64117E #7E1161 #7E112B
triadic
#7E1161 #617E11 #11617E
tetradic
#7E1161 #7E6411 #117E2E #112B7E
square
#7E1161 #7E6411 #117E2E #112B7E
split-complementary
#7E1161 #2B7E11 #117E64
monochromatic
#1B0415 #480A37 #7E1161 #B4188B #E227B0

Accessibility & contrast

On white

9.81
#7E1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1161
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1161#FFFFFF#000000##FFFFFF
##7E11611.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3863
Deuteranopia (green-blind)
#424A5F
Tritanopia (blue-blind)
#861339
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1161;
/* rgb */ color: rgb(126, 17, 97);
/* oklch */ color: oklch(40.6% 0.161 342.1);
Tailwind
colors: {
  custom: {
    50: '#a75f8e',
    500: '#7e1161',
    950: '#000000',
  },
}
SCSS
$custom: #7e1161;
$custom-light: #a75f8e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1161",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 315.963,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.4064,
    "c": 0.1614,
    "h": 342.1
  },
  "luminance": 0.057
}

Semantic roles & 50–950 ramp

primary
#7E1161
secondary
#37B458
accent
#F36735
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050C
muted
#7F7A7D

Preview Lab

Preview with #7E1161

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

Preview Lab → · Contrast checker → · Palette generator →

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