#7D1C6D#7D1C6D

#7D1C6D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.159 H 335.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#7D1C6D
RGBrgb(125, 28, 109)
HSLhsl(310, 63%, 30%)
HSVhsv(310, 78%, 49%)
CMYKcmyk(0%, 77.6%, 12.8%, 51%)
CIE-LABlab(30.15, 49.34, -23.89)
CIE-LCHlch(30.15, 54.82, 334.17°)
OKLaboklab(41.88% 0.1445 -0.0652)
OKLCHoklch(41.88% 0.159 335.7)
XYZxyz(11.6332, 6.2957, 15.0675)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C6D #1C7D2C
analogous
#5D1C7D #7D1C6D #7D1C3C
triadic
#7D1C6D #6D7D1C #1C6D7D
tetradic
#7D1C6D #7D5D1C #1C7D2C #1C3C7D
square
#7D1C6D #7D5D1C #1C7D2C #1C3C7D
split-complementary
#7D1C6D #3C7D1C #1C7D5D
monochromatic
#190616 #4B1141 #7D1C6D #AF2799 #D43FBC

Accessibility & contrast

On white

9.30
#7D1C6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7D1C6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C6D
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C6D#FFFFFF#000000##FFFFFF
##7D1C6D1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3E6F
Deuteranopia (green-blind)
#3F4C6B
Tritanopia (blue-blind)
#842443
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1c6d;
/* rgb */ color: rgb(125, 28, 109);
/* oklch */ color: oklch(41.9% 0.159 335.7);
Tailwind
colors: {
  custom: {
    50: '#a66497',
    500: '#7d1c6d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c6d;
$custom-light: #a66497;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c6d",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 109
  },
  "hsl": {
    "h": 309.897,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.41883,
    "c": 0.15855,
    "h": 335.7
  },
  "luminance": 0.06295
}

Semantic roles & 50–950 ramp

primary
#7D1C6D
secondary
#44B156
accent
#E65D41
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D1C6D

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

Preview Lab → · Contrast checker → · Palette generator →

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