#7E2256#7E2256

#7E2256 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.5% C 0.137 H 350.0°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#7E2256
RGBrgb(126, 34, 86)
HSLhsl(326, 58%, 31%)
HSVhsv(326, 73%, 49%)
CMYKcmyk(0%, 73%, 31.7%, 50.6%)
CIE-LABlab(30.04, 44.14, -9.13)
CIE-LCHlch(30.04, 45.08, 348.32°)
OKLaboklab(41.5% 0.1346 -0.0238)
OKLCHoklch(41.5% 0.137 350)
XYZxyz(10.8565, 6.2528, 9.4375)
Luminance0.0625 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2256 #227E4A
analogous
#78227E #7E2256 #7E2228
triadic
#7E2256 #567E22 #22567E
tetradic
#7E2256 #7E7822 #227E4A #22287E
square
#7E2256 #7E7822 #227E4A #22287E
split-complementary
#7E2256 #287E22 #227E78
monochromatic
#1E0814 #4E1535 #7E2256 #AE2F77 #CF4C96

Accessibility & contrast

On white

9.33
#7E2256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2256
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2256#FFFFFF#000000##FFFFFF
##7E22561.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303C57
Deuteranopia (green-blind)
#4A4D54
Tritanopia (blue-blind)
#871D39
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e2256;
/* rgb */ color: rgb(126, 34, 86);
/* oklch */ color: oklch(41.5% 0.137 350.0);
Tailwind
colors: {
  custom: {
    50: '#a76585',
    500: '#7e2256',
    950: '#000000',
  },
}
SCSS
$custom: #7e2256;
$custom-light: #a76585;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2256",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 326.087,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41496,
    "c": 0.13673,
    "h": 350
  },
  "luminance": 0.06252
}

Semantic roles & 50–950 ramp

primary
#7E2256
secondary
#4BB177
accent
#E18A47
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E2256

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

Preview Lab → · Contrast checker → · Palette generator →

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