#7E1F5E#7E1F5E

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

Color values

HEX#7E1F5E
RGBrgb(126, 31, 94)
HSLhsl(320, 61%, 31%)
HSVhsv(320, 75%, 49%)
CMYKcmyk(0%, 75.4%, 25.4%, 50.6%)
CIE-LABlab(29.97, 46.35, -14.46)
CIE-LCHlch(29.97, 48.55, 342.68°)
OKLaboklab(41.56% 0.1401 -0.0385)
OKLCHoklch(41.56% 0.145 344.6)
XYZxyz(11.1150, 6.2249, 11.2037)
Luminance0.0622 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F5E #1F7E3F
analogous
#6E1F7E #7E1F5E #7E1F2E
triadic
#7E1F5E #5E7E1F #1F5E7E
tetradic
#7E1F5E #7E6E1F #1F7E3F #1F2E7E
square
#7E1F5E #7E6E1F #1F7E3F #1F2E7E
split-complementary
#7E1F5E #2E7E1F #1F7E6E
monochromatic
#1C0715 #4D1339 #7E1F5E #AF2B83 #D146A2

Accessibility & contrast

On white

9.35
#7E1F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E1F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F5E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F5E#FFFFFF#000000##FFFFFF
##7E1F5E1.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1f5e;
/* rgb */ color: rgb(126, 31, 94);
/* oklch */ color: oklch(41.6% 0.145 344.6);
Tailwind
colors: {
  custom: {
    50: '#a7648b',
    500: '#7e1f5e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f5e;
$custom-light: #a7648b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f5e",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 94
  },
  "hsl": {
    "h": 320.211,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41555,
    "c": 0.14531,
    "h": 344.6
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

primary
#7E1F5E
secondary
#48B16B
accent
#E47A44
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E1F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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