#7E2564#7E2564

#7E2564 is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.4% C 0.142 H 341.6°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7E2564
RGBrgb(126, 37, 100)
HSLhsl(318, 55%, 32%)
HSVhsv(318, 71%, 49%)
CMYKcmyk(0%, 70.6%, 20.6%, 50.6%)
CIE-LABlab(31.07, 44.90, -16.66)
CIE-LCHlch(31.07, 47.89, 339.65°)
OKLaboklab(42.44% 0.1343 -0.0447)
OKLCHoklch(42.44% 0.142 341.6)
XYZxyz(11.5663, 6.6800, 12.7343)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2564 #257E3F
analogous
#6C257E #7E2564 #7E2538
triadic
#7E2564 #647E25 #25647E
tetradic
#7E2564 #7E6C25 #257E3F #25387E
square
#7E2564 #7E6C25 #257E3F #25387E
split-complementary
#7E2564 #387E25 #257E6C
monochromatic
#1F0919 #4F173E #7E2564 #AD338A #CC51A8

Accessibility & contrast

On white

8.99
#7E2564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E2564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2564
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2564#FFFFFF#000000##FFFFFF
##7E25641.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4066
Deuteranopia (green-blind)
#474E62
Tritanopia (blue-blind)
#862641
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e2564;
/* rgb */ color: rgb(126, 37, 100);
/* oklch */ color: oklch(42.4% 0.142 341.6);
Tailwind
colors: {
  custom: {
    50: '#a66790',
    500: '#7e2564',
    950: '#000000',
  },
}
SCSS
$custom: #7e2564;
$custom-light: #a66790;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2564",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 100
  },
  "hsl": {
    "h": 317.528,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42441,
    "c": 0.14151,
    "h": 341.6
  },
  "luminance": 0.06679
}

Semantic roles & 50–950 ramp

primary
#7E2564
secondary
#4FB06B
accent
#DE754A
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E2564

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

Preview Lab → · Contrast checker → · Palette generator →

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