#7E1B6D#7E1B6D

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

Color values

HEX#7E1B6D
RGBrgb(126, 27, 109)
HSLhsl(310, 65%, 30%)
HSVhsv(310, 79%, 49%)
CMYKcmyk(0%, 78.6%, 13.5%, 50.6%)
CIE-LABlab(30.22, 49.91, -23.76)
CIE-LCHlch(30.22, 55.28, 334.54°)
OKLaboklab(41.97% 0.1465 -0.0648)
OKLCHoklch(41.97% 0.16 336.1)
XYZxyz(11.7566, 6.3247, 15.0666)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B6D #1B7E2C
analogous
#5D1B7E #7E1B6D #7E1B3C
triadic
#7E1B6D #6D7E1B #1B6D7E
tetradic
#7E1B6D #7E5D1B #1B7E2C #1B3C7E
square
#7E1B6D #7E5D1B #1B7E2C #1B3C7E
split-complementary
#7E1B6D #3C7E1B #1B7E5D
monochromatic
#190516 #4C1041 #7E1B6D #B02699 #D63EBC

Accessibility & contrast

On white

9.27
#7E1B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1B6D
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B6D#FFFFFF#000000##FFFFFF
##7E1B6D1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1b6d;
/* rgb */ color: rgb(126, 27, 109);
/* oklch */ color: oklch(42.0% 0.160 336.1);
Tailwind
colors: {
  custom: {
    50: '#a76397',
    500: '#7e1b6d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b6d;
$custom-light: #a76397;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b6d",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 310.303,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.41968,
    "c": 0.16022,
    "h": 336.1
  },
  "luminance": 0.06324
}

Semantic roles & 50–950 ramp

primary
#7E1B6D
secondary
#43B256
accent
#E85D40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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