#7D1D7E#7D1D7E

#7D1D7E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.171 H 327.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7D1D7E
RGBrgb(125, 29, 126)
HSLhsl(299, 63%, 30%)
HSVhsv(299, 77%, 49%)
CMYKcmyk(0.8%, 77%, 0%, 50.6%)
CIE-LABlab(31.22, 51.83, -32.97)
CIE-LCHlch(31.22, 61.42, 327.54°)
OKLaboklab(42.96% 0.1441 -0.0915)
OKLCHoklch(42.96% 0.171 327.6)
XYZxyz(12.6625, 6.7460, 20.3698)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D7E #1E7E1D
analogous
#4C1D7E #7D1D7E #7E1D4F
triadic
#7D1D7E #7E7D1D #1D7E7D
tetradic
#7D1D7E #7E4C1D #1E7E1D #1D4F7E
square
#7D1D7E #7E4C1D #1E7E1D #1D4F7E
split-complementary
#7D1D7E #4F7E1D #1D7E4C
monochromatic
#1A061B #4C124C #7D1D7E #AE28B0 #D242D3

Accessibility & contrast

On white

8.94
#7D1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7D1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1D7E
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D7E#FFFFFF#000000##FFFFFF
##7D1D7E1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054281
Deuteranopia (green-blind)
#374E7C
Tritanopia (blue-blind)
#812D4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1d7e;
/* rgb */ color: rgb(125, 29, 126);
/* oklch */ color: oklch(43.0% 0.171 327.6);
Tailwind
colors: {
  custom: {
    50: '#a665a4',
    500: '#7d1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d7e;
$custom-light: #a665a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d7e",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 299.381,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42964,
    "c": 0.17069,
    "h": 327.6
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#7D1D7E
secondary
#46B145
accent
#E64244
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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