#7D1D7D#7D1D7D

#7D1D7D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.170 H 328.0°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#7D1D7D
RGBrgb(125, 29, 125)
HSLhsl(300, 62%, 30%)
HSVhsv(300, 77%, 49%)
CMYKcmyk(0%, 76.8%, 0%, 51%)
CIE-LABlab(31.16, 51.65, -32.44)
CIE-LCHlch(31.16, 60.99, 327.87°)
OKLaboklab(42.9% 0.1441 -0.0899)
OKLCHoklch(42.9% 0.17 328)
XYZxyz(12.5983, 6.7203, 20.0317)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D7D #1D7D1D
analogous
#4D1D7D #7D1D7D #7D1D4D
triadic
#7D1D7D #7D7D1D #1D7D7D
tetradic
#7D1D7D #7D4D1D #1D7D1D #1D4D7D
square
#7D1D7D #7D4D1D #1D7D1D #1D4D7D
split-complementary
#7D1D7D #4D7D1D #1D7D4D
monochromatic
#1A061A #4B114B #7D1D7D #AF29AF #D341D3

Accessibility & contrast

On white

8.96
#7D1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7D1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1D7D
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D7D#FFFFFF#000000##FFFFFF
##7D1D7D1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074180
Deuteranopia (green-blind)
#384E7B
Tritanopia (blue-blind)
#812C4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1d7d;
/* rgb */ color: rgb(125, 29, 125);
/* oklch */ color: oklch(42.9% 0.170 328.0);
Tailwind
colors: {
  custom: {
    50: '#a665a3',
    500: '#7d1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d7d;
$custom-light: #a665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d7d",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42902,
    "c": 0.16988,
    "h": 328
  },
  "luminance": 0.06719
}

Semantic roles & 50–950 ramp

primary
#7D1D7D
secondary
#45B145
accent
#E54242
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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