#7E2154#7E2154

#7E2154 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.3% C 0.137 H 351.1°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#7E2154
RGBrgb(126, 33, 84)
HSLhsl(327, 58%, 31%)
HSVhsv(327, 74%, 49%)
CMYKcmyk(0%, 73.8%, 33.3%, 50.6%)
CIE-LABlab(29.82, 44.28, -8.14)
CIE-LCHlch(29.82, 45.02, 349.58°)
OKLaboklab(41.31% 0.1353 -0.0211)
OKLCHoklch(41.31% 0.137 351.1)
XYZxyz(10.7489, 6.1647, 9.0096)
Luminance0.0616 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2154 #217E4B
analogous
#79217E #7E2154 #7E2125
triadic
#7E2154 #547E21 #21547E
tetradic
#7E2154 #7E7921 #217E4B #21257E
square
#7E2154 #7E7921 #217E4B #21257E
split-complementary
#7E2154 #257E21 #217E79
monochromatic
#1D0813 #4E1434 #7E2154 #AE2E74 #D04A93

Accessibility & contrast

On white

9.41
#7E2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2154
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2154#FFFFFF#000000##FFFFFF
##7E21541.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303C55
Deuteranopia (green-blind)
#4B4C52
Tritanopia (blue-blind)
#881B37
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2154;
/* rgb */ color: rgb(126, 33, 84);
/* oklch */ color: oklch(41.3% 0.137 351.1);
Tailwind
colors: {
  custom: {
    50: '#a76584',
    500: '#7e2154',
    950: '#000000',
  },
}
SCSS
$custom: #7e2154;
$custom-light: #a76584;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2154",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 327.097,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41311,
    "c": 0.13694,
    "h": 351.1
  },
  "luminance": 0.06163
}

Semantic roles & 50–950 ramp

primary
#7E2154
secondary
#4AB178
accent
#E28C46
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E2154

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

Preview Lab → · Contrast checker → · Palette generator →

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