#7E1D7D#7E1D7D

#7E1D7D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.170 H 328.5°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7E1D7D
RGBrgb(126, 29, 125)
HSLhsl(301, 63%, 30%)
HSVhsv(301, 77%, 49%)
CMYKcmyk(0%, 77%, 0.8%, 50.6%)
CIE-LABlab(31.34, 51.88, -32.15)
CIE-LCHlch(31.34, 61.03, 328.22°)
OKLaboklab(43.06% 0.1453 -0.089)
OKLCHoklch(43.06% 0.17 328.5)
XYZxyz(12.7451, 6.7960, 20.0385)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D7D #1D7E1E
analogous
#4F1D7E #7E1D7D #7E1D4C
triadic
#7E1D7D #7D7E1D #1D7D7E
tetradic
#7E1D7D #7E4F1D #1D7E1E #1D4C7E
square
#7E1D7D #7E4F1D #1D7E1E #1D4C7E
split-complementary
#7E1D7D #4C7E1D #1D7E4F
monochromatic
#1B061A #4C124C #7E1D7D #B028AE #D342D2

Accessibility & contrast

On white

8.90
#7E1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D7D
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D7D#FFFFFF#000000##FFFFFF
##7E1D7D1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094280
Deuteranopia (green-blind)
#394E7B
Tritanopia (blue-blind)
#822C4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1d7d;
/* rgb */ color: rgb(126, 29, 125);
/* oklch */ color: oklch(43.1% 0.170 328.5);
Tailwind
colors: {
  custom: {
    50: '#a765a3',
    500: '#7e1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d7d;
$custom-light: #a765a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d7d",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 300.619,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.43061,
    "c": 0.17038,
    "h": 328.5
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#7E1D7D
secondary
#45B146
accent
#E64442
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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