#7E2161#7E2161

#7E2161 is a dark, vivid pink. Relative luminance 0.064; OKLCH L 41.9% C 0.145 H 343.0°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7E2161
RGBrgb(126, 33, 97)
HSLhsl(319, 58%, 31%)
HSVhsv(319, 74%, 49%)
CMYKcmyk(0%, 73.8%, 23%, 50.6%)
CIE-LABlab(30.37, 46.03, -15.79)
CIE-LCHlch(30.37, 48.67, 341.06°)
OKLaboklab(41.89% 0.1385 -0.0423)
OKLCHoklch(41.89% 0.145 343)
XYZxyz(11.3061, 6.3875, 11.9444)
Luminance0.0639 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2161 #217E3E
analogous
#6C217E #7E2161 #7E2132
triadic
#7E2161 #617E21 #21617E
tetradic
#7E2161 #7E6C21 #217E3E #21327E
square
#7E2161 #7E6C21 #217E3E #21327E
split-complementary
#7E2161 #327E21 #217E6C
monochromatic
#1D0816 #4E143C #7E2161 #AE2E86 #D04AA6

Accessibility & contrast

On white

9.22
#7E2161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E2161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2161
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2161#FFFFFF#000000##FFFFFF
##7E21611.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3E63
Deuteranopia (green-blind)
#474D5F
Tritanopia (blue-blind)
#86213E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e2161;
/* rgb */ color: rgb(126, 33, 97);
/* oklch */ color: oklch(41.9% 0.145 343.0);
Tailwind
colors: {
  custom: {
    50: '#a7658e',
    500: '#7e2161',
    950: '#000000',
  },
}
SCSS
$custom: #7e2161;
$custom-light: #a7658e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2161",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 318.71,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41888,
    "c": 0.14477,
    "h": 343
  },
  "luminance": 0.06386
}

Semantic roles & 50–950 ramp

primary
#7E2161
secondary
#4AB16A
accent
#E27746
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E2161

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

Preview Lab → · Contrast checker → · Palette generator →

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