#7E1D6D#7E1D6D

#7E1D6D is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.1% C 0.158 H 336.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#7E1D6D
RGBrgb(126, 29, 109)
HSLhsl(311, 63%, 30%)
HSVhsv(311, 77%, 49%)
CMYKcmyk(0%, 77%, 13.5%, 50.6%)
CIE-LABlab(30.45, 49.26, -23.40)
CIE-LCHlch(30.45, 54.53, 334.59°)
OKLaboklab(42.13% 0.1446 -0.0638)
OKLCHoklch(42.13% 0.158 336.2)
XYZxyz(11.8041, 6.4196, 15.0825)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D6D #1D7E2E
analogous
#5E1D7E #7E1D6D #7E1D3D
triadic
#7E1D6D #6D7E1D #1D6D7E
tetradic
#7E1D6D #7E5E1D #1D7E2E #1D3D7E
square
#7E1D6D #7E5E1D #1D7E2E #1D3D7E
split-complementary
#7E1D6D #3D7E1D #1D7E5E
monochromatic
#1B0617 #4C1242 #7E1D6D #B02898 #D342BA

Accessibility & contrast

On white

9.20
#7E1D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E1D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D6D
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D6D#FFFFFF#000000##FFFFFF
##7E1D6D1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3E6F
Deuteranopia (green-blind)
#414D6B
Tritanopia (blue-blind)
#852443
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1d6d;
/* rgb */ color: rgb(126, 29, 109);
/* oklch */ color: oklch(42.1% 0.158 336.2);
Tailwind
colors: {
  custom: {
    50: '#a76497',
    500: '#7e1d6d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d6d;
$custom-light: #a76497;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d6d",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 109
  },
  "hsl": {
    "h": 310.515,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42134,
    "c": 0.15802,
    "h": 336.2
  },
  "luminance": 0.06418
}

Semantic roles & 50–950 ramp

primary
#7E1D6D
secondary
#45B158
accent
#E65F42
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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