#7E2159#7E2159

#7E2159 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.5% C 0.140 H 347.9°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7E2159
RGBrgb(126, 33, 89)
HSLhsl(324, 58%, 31%)
HSVhsv(324, 74%, 49%)
CMYKcmyk(0%, 73.8%, 29.4%, 50.6%)
CIE-LABlab(30.02, 44.92, -11.12)
CIE-LCHlch(30.02, 46.28, 346.10°)
OKLaboklab(41.52% 0.1367 -0.0293)
OKLCHoklch(41.52% 0.14 347.9)
XYZxyz(10.9517, 6.2458, 10.0781)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2159 #217E46
analogous
#74217E #7E2159 #7E212A
triadic
#7E2159 #597E21 #21597E
tetradic
#7E2159 #7E7421 #217E46 #212A7E
square
#7E2159 #7E7421 #217E46 #212A7E
split-complementary
#7E2159 #2A7E21 #217E74
monochromatic
#1D0814 #4E1437 #7E2159 #AE2E7B #D04A9A

Accessibility & contrast

On white

9.34
#7E2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E2159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2159
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2159#FFFFFF#000000##FFFFFF
##7E21591.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3C5B
Deuteranopia (green-blind)
#494D57
Tritanopia (blue-blind)
#871D3A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e2159;
/* rgb */ color: rgb(126, 33, 89);
/* oklch */ color: oklch(41.5% 0.140 347.9);
Tailwind
colors: {
  custom: {
    50: '#a76588',
    500: '#7e2159',
    950: '#000000',
  },
}
SCSS
$custom: #7e2159;
$custom-light: #a76588;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2159",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 323.871,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41523,
    "c": 0.13975,
    "h": 347.9
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#7E2159
secondary
#4AB173
accent
#E28446
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E2159

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

Preview Lab → · Contrast checker → · Palette generator →

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