#7D1C7D#7D1C7D

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

Color values

HEX#7D1C7D
RGBrgb(125, 28, 125)
HSLhsl(300, 63%, 30%)
HSVhsv(300, 78%, 49%)
CMYKcmyk(0%, 77.6%, 0%, 51%)
CIE-LABlab(31.05, 51.98, -32.62)
CIE-LCHlch(31.05, 61.36, 327.89°)
OKLaboklab(42.82% 0.1451 -0.0904)
OKLCHoklch(42.82% 0.171 328.1)
XYZxyz(12.5742, 6.6721, 20.0236)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C7D #1C7D1C
analogous
#4C1C7D #7D1C7D #7D1C4D
triadic
#7D1C7D #7D7D1C #1C7D7D
tetradic
#7D1C7D #7D4D1C #1C7D1C #1C4C7D
square
#7D1C7D #7D4D1C #1C7D1C #1C4C7D
split-complementary
#7D1C7D #4D7D1C #1C7D4D
monochromatic
#190619 #4B114B #7D1C7D #AF27AF #D43FD4

Accessibility & contrast

On white

9.00
#7D1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1C7D
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C7D#FFFFFF#000000##FFFFFF
##7D1C7D1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054180
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#812C4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1c7d;
/* rgb */ color: rgb(125, 28, 125);
/* oklch */ color: oklch(42.8% 0.171 328.1);
Tailwind
colors: {
  custom: {
    50: '#a664a3',
    500: '#7d1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c7d;
$custom-light: #a664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c7d",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.42821,
    "c": 0.17093,
    "h": 328.1
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#7D1C7D
secondary
#44B144
accent
#E64141
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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