#7E2162#7E2162

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

Color values

HEX#7E2162
RGBrgb(126, 33, 98)
HSLhsl(318, 58%, 31%)
HSVhsv(318, 74%, 49%)
CMYKcmyk(0%, 73.8%, 22.2%, 50.6%)
CIE-LABlab(30.42, 46.18, -16.37)
CIE-LCHlch(30.42, 48.99, 340.48°)
OKLaboklab(41.94% 0.1387 -0.0439)
OKLCHoklch(41.94% 0.145 342.4)
XYZxyz(11.3530, 6.4063, 12.1915)
Luminance0.0640 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2162 #217E3D
analogous
#6B217E #7E2162 #7E2133
triadic
#7E2162 #627E21 #21627E
tetradic
#7E2162 #7E6B21 #217E3D #21337E
square
#7E2162 #7E6B21 #217E3D #21337E
split-complementary
#7E2162 #337E21 #217E6B
monochromatic
#1D0817 #4E143C #7E2162 #AE2E88 #D04AA7

Accessibility & contrast

On white

9.21
#7E2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2162
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2162#FFFFFF#000000##FFFFFF
##7E21621.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3E64
Deuteranopia (green-blind)
#464D60
Tritanopia (blue-blind)
#86223E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e2162;
/* rgb */ color: rgb(126, 33, 98);
/* oklch */ color: oklch(41.9% 0.145 342.4);
Tailwind
colors: {
  custom: {
    50: '#a7658e',
    500: '#7e2162',
    950: '#000000',
  },
}
SCSS
$custom: #7e2162;
$custom-light: #a7658e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2162",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 318.065,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41936,
    "c": 0.14544,
    "h": 342.4
  },
  "luminance": 0.06405
}

Semantic roles & 50–950 ramp

primary
#7E2162
secondary
#4AB169
accent
#E27546
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E2162

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

Preview Lab → · Contrast checker → · Palette generator →

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