#7E2156#7E2156

#7E2156 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.4% C 0.138 H 349.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7E2156
RGBrgb(126, 33, 86)
HSLhsl(326, 58%, 31%)
HSVhsv(326, 74%, 49%)
CMYKcmyk(0%, 73.8%, 31.7%, 50.6%)
CIE-LABlab(29.90, 44.53, -9.34)
CIE-LCHlch(29.90, 45.50, 348.16°)
OKLaboklab(41.39% 0.1359 -0.0244)
OKLCHoklch(41.39% 0.138 349.8)
XYZxyz(10.8283, 6.1964, 9.4281)
Luminance0.0619 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2156 #217E49
analogous
#77217E #7E2156 #7E2127
triadic
#7E2156 #567E21 #21567E
tetradic
#7E2156 #7E7721 #217E49 #21277E
square
#7E2156 #7E7721 #217E49 #21277E
split-complementary
#7E2156 #277E21 #217E77
monochromatic
#1D0814 #4E1435 #7E2156 #AE2E77 #D04A96

Accessibility & contrast

On white

9.38
#7E2156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E2156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2156
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2156#FFFFFF#000000##FFFFFF
##7E21561.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3C57
Deuteranopia (green-blind)
#4A4C54
Tritanopia (blue-blind)
#871C38
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2156;
/* rgb */ color: rgb(126, 33, 86);
/* oklch */ color: oklch(41.4% 0.138 349.8);
Tailwind
colors: {
  custom: {
    50: '#a76585',
    500: '#7e2156',
    950: '#000000',
  },
}
SCSS
$custom: #7e2156;
$custom-light: #a76585;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2156",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 325.806,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41394,
    "c": 0.13803,
    "h": 349.8
  },
  "luminance": 0.06195
}

Semantic roles & 50–950 ramp

primary
#7E2156
secondary
#4AB176
accent
#E28946
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E2156

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

Preview Lab → · Contrast checker → · Palette generator →

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