#7D1D7C#7D1D7C

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

Color values

HEX#7D1D7C
RGBrgb(125, 29, 124)
HSLhsl(301, 62%, 30%)
HSVhsv(301, 77%, 49%)
CMYKcmyk(0%, 76.8%, 0.8%, 51%)
CIE-LABlab(31.10, 51.48, -31.90)
CIE-LCHlch(31.10, 60.56, 328.21°)
OKLaboklab(42.84% 0.1442 -0.0883)
OKLCHoklch(42.84% 0.169 328.5)
XYZxyz(12.5348, 6.6949, 19.6969)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D7C #1D7D1E
analogous
#4E1D7D #7D1D7C #7D1D4C
triadic
#7D1D7C #7C7D1D #1D7C7D
tetradic
#7D1D7C #7D4E1D #1D7D1E #1D4C7D
square
#7D1D7C #7D4E1D #1D7D1E #1D4C7D
split-complementary
#7D1D7C #4C7D1D #1D7D4E
monochromatic
#1A0619 #4B114B #7D1D7C #AF29AD #D341D1

Accessibility & contrast

On white

8.98
#7D1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1D7C
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D7C#FFFFFF#000000##FFFFFF
##7D1D7C1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09417F
Deuteranopia (green-blind)
#384E7A
Tritanopia (blue-blind)
#812C4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1d7c;
/* rgb */ color: rgb(125, 29, 124);
/* oklch */ color: oklch(42.8% 0.169 328.5);
Tailwind
colors: {
  custom: {
    50: '#a665a2',
    500: '#7d1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d7c;
$custom-light: #a665a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d7c",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 300.625,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.4284,
    "c": 0.16907,
    "h": 328.5
  },
  "luminance": 0.06694
}

Semantic roles & 50–950 ramp

primary
#7D1D7C
secondary
#45B146
accent
#E54442
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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