#7D1D7A#7D1D7A

#7D1D7A is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.167 H 329.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7D1D7A
RGBrgb(125, 29, 122)
HSLhsl(302, 62%, 30%)
HSVhsv(302, 77%, 49%)
CMYKcmyk(0%, 76.8%, 2.4%, 51%)
CIE-LABlab(30.98, 51.14, -30.83)
CIE-LCHlch(30.98, 59.71, 328.92°)
OKLaboklab(42.72% 0.1442 -0.0852)
OKLCHoklch(42.72% 0.167 329.4)
XYZxyz(12.4096, 6.6448, 19.0376)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D7A #1D7D20
analogous
#501D7D #7D1D7A #7D1D4A
triadic
#7D1D7A #7A7D1D #1D7A7D
tetradic
#7D1D7A #7D501D #1D7D20 #1D4A7D
square
#7D1D7A #7D501D #1D7D20 #1D4A7D
split-complementary
#7D1D7A #4A7D1D #1D7D50
monochromatic
#1A0619 #4B114A #7D1D7A #AF29AA #D341CE

Accessibility & contrast

On white

9.02
#7D1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7D1D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1D7A
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D7A#FFFFFF#000000##FFFFFF
##7D1D7A1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417D
Deuteranopia (green-blind)
#394D78
Tritanopia (blue-blind)
#822B4A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1d7a;
/* rgb */ color: rgb(125, 29, 122);
/* oklch */ color: oklch(42.7% 0.167 329.4);
Tailwind
colors: {
  custom: {
    50: '#a664a1',
    500: '#7d1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d7a;
$custom-light: #a664a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d7a",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 301.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42718,
    "c": 0.16747,
    "h": 329.4
  },
  "luminance": 0.06644
}

Semantic roles & 50–950 ramp

primary
#7D1D7A
secondary
#45B149
accent
#E54742
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7D1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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