#7E1F56#7E1F56

#7E1F56 is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.2% C 0.141 H 349.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#7E1F56
RGBrgb(126, 31, 86)
HSLhsl(325, 61%, 31%)
HSVhsv(325, 75%, 49%)
CMYKcmyk(0%, 75.4%, 31.7%, 50.6%)
CIE-LABlab(29.64, 45.28, -9.74)
CIE-LCHlch(29.64, 46.32, 347.86°)
OKLaboklab(41.2% 0.1382 -0.0255)
OKLCHoklch(41.2% 0.141 349.6)
XYZxyz(10.7744, 6.0887, 9.4101)
Luminance0.0609 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F56 #1F7E47
analogous
#761F7E #7E1F56 #7E1F26
triadic
#7E1F56 #567E1F #1F567E
tetradic
#7E1F56 #7E761F #1F7E47 #1F267E
square
#7E1F56 #7E761F #1F7E47 #1F267E
split-complementary
#7E1F56 #267E1F #1F7E76
monochromatic
#1C0713 #4D1334 #7E1F56 #AF2B78 #D14697

Accessibility & contrast

On white

9.47
#7E1F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7E1F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F56
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F56#FFFFFF#000000##FFFFFF
##7E1F561.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3B57
Deuteranopia (green-blind)
#494C54
Tritanopia (blue-blind)
#881A37
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1f56;
/* rgb */ color: rgb(126, 31, 86);
/* oklch */ color: oklch(41.2% 0.141 349.6);
Tailwind
colors: {
  custom: {
    50: '#a76485',
    500: '#7e1f56',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f56;
$custom-light: #a76485;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f56",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 325.263,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41199,
    "c": 0.14053,
    "h": 349.6
  },
  "luminance": 0.06087
}

Semantic roles & 50–950 ramp

primary
#7E1F56
secondary
#48B174
accent
#E48744
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E1F56

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

Preview Lab → · Contrast checker → · Palette generator →

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