#7E1A6D#7E1A6D

#7E1A6D is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.9% C 0.161 H 336.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7E1A6D
RGBrgb(126, 26, 109)
HSLhsl(310, 66%, 30%)
HSVhsv(310, 79%, 49%)
CMYKcmyk(0%, 79.4%, 13.5%, 50.6%)
CIE-LABlab(30.11, 50.23, -23.93)
CIE-LCHlch(30.11, 55.64, 334.52°)
OKLaboklab(41.89% 0.1475 -0.0653)
OKLCHoklch(41.89% 0.161 336.1)
XYZxyz(11.7341, 6.2796, 15.0591)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A6D #1A7E2B
analogous
#5D1A7E #7E1A6D #7E1A3B
triadic
#7E1A6D #6D7E1A #1A6D7E
tetradic
#7E1A6D #7E5D1A #1A7E2B #1A3B7E
square
#7E1A6D #7E5D1A #1A7E2B #1A3B7E
split-complementary
#7E1A6D #3B7E1A #1A7E5D
monochromatic
#190516 #4B1041 #7E1A6D #B12499 #D73CBC

Accessibility & contrast

On white

9.31
#7E1A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E1A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A6D
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A6D#FFFFFF#000000##FFFFFF
##7E1A6D1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3D6F
Deuteranopia (green-blind)
#404C6B
Tritanopia (blue-blind)
#852242
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1a6d;
/* rgb */ color: rgb(126, 26, 109);
/* oklch */ color: oklch(41.9% 0.161 336.1);
Tailwind
colors: {
  custom: {
    50: '#a76397',
    500: '#7e1a6d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a6d;
$custom-light: #a76397;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a6d",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 109
  },
  "hsl": {
    "h": 310.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41889,
    "c": 0.16128,
    "h": 336.1
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#7E1A6D
secondary
#42B255
accent
#E95C3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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