#7D1C7F#7D1C7F

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

Color values

HEX#7D1C7F
RGBrgb(125, 28, 127)
HSLhsl(299, 64%, 30%)
HSVhsv(299, 78%, 50%)
CMYKcmyk(1.6%, 78%, 0%, 50.2%)
CIE-LABlab(31.17, 52.32, -33.68)
CIE-LCHlch(31.17, 62.23, 327.23°)
OKLaboklab(42.95% 0.145 -0.0935)
OKLCHoklch(42.95% 0.173 327.2)
XYZxyz(12.7033, 6.7237, 20.7033)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C7F #1E7F1C
analogous
#4B1C7F #7D1C7F #7F1C4F
triadic
#7D1C7F #7F7D1C #1C7F7D
tetradic
#7D1C7F #7F4B1C #1E7F1C #1C4F7F
square
#7D1C7F #7F4B1C #1E7F1C #1C4F7F
split-complementary
#7D1C7F #4F7F1C #1C7F4B
monochromatic
#1A061B #4C114D #7D1C7F #AE27B1 #D240D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D1C7F#FFFFFF#000000##FFFFFF
##7D1C7F1.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)
#004282
Deuteranopia (green-blind)
#364E7D
Tritanopia (blue-blind)
#812D4D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1c7f;
/* rgb */ color: rgb(125, 28, 127);
/* oklch */ color: oklch(42.9% 0.173 327.2);
Tailwind
colors: {
  custom: {
    50: '#a664a4',
    500: '#7d1c7f',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c7f;
$custom-light: #a664a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c7f",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 298.788,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42946,
    "c": 0.17255,
    "h": 327.2
  },
  "luminance": 0.06723
}

Semantic roles & 50–950 ramp

primary
#7D1C7F
secondary
#46B344
accent
#E74144
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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