#7E1F5F#7E1F5F

#7E1F5F is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.6% C 0.146 H 344.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7E1F5F
RGBrgb(126, 31, 95)
HSLhsl(320, 61%, 31%)
HSVhsv(320, 75%, 49%)
CMYKcmyk(0%, 75.4%, 24.6%, 50.6%)
CIE-LABlab(30.02, 46.49, -15.04)
CIE-LCHlch(30.02, 48.86, 342.08°)
OKLaboklab(41.6% 0.1403 -0.0401)
OKLCHoklch(41.6% 0.146 344)
XYZxyz(11.1602, 6.2430, 11.4415)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F5F #1F7E3E
analogous
#6D1F7E #7E1F5F #7E1F2F
triadic
#7E1F5F #5F7E1F #1F5F7E
tetradic
#7E1F5F #7E6D1F #1F7E3E #1F2F7E
square
#7E1F5F #7E6D1F #1F7E3E #1F2F7E
split-complementary
#7E1F5F #2F7E1F #1F7E6D
monochromatic
#1C0715 #4D133A #7E1F5F #AF2B84 #D146A4

Accessibility & contrast

On white

9.34
#7E1F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F5F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F5F#FFFFFF#000000##FFFFFF
##7E1F5F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3D61
Deuteranopia (green-blind)
#474C5D
Tritanopia (blue-blind)
#871E3C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1f5f;
/* rgb */ color: rgb(126, 31, 95);
/* oklch */ color: oklch(41.6% 0.146 344.0);
Tailwind
colors: {
  custom: {
    50: '#a7648c',
    500: '#7e1f5f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f5f;
$custom-light: #a7648c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f5f",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 319.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41602,
    "c": 0.14596,
    "h": 344
  },
  "luminance": 0.06242
}

Semantic roles & 50–950 ramp

primary
#7E1F5F
secondary
#48B16A
accent
#E47844
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E1F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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