#7D1E7C#7D1E7C

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

Color values

HEX#7D1E7C
RGBrgb(125, 30, 124)
HSLhsl(301, 61%, 30%)
HSVhsv(301, 76%, 49%)
CMYKcmyk(0%, 76%, 0.8%, 51%)
CIE-LABlab(31.22, 51.15, -31.72)
CIE-LCHlch(31.22, 60.18, 328.20°)
OKLaboklab(42.92% 0.1432 -0.0878)
OKLCHoklch(42.92% 0.168 328.5)
XYZxyz(12.5597, 6.7447, 19.7052)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E7C #1E7D1F
analogous
#4F1E7D #7D1E7C #7D1E4C
triadic
#7D1E7C #7C7D1E #1E7C7D
tetradic
#7D1E7C #7D4F1E #1E7D1F #1E4C7D
square
#7D1E7C #7D4F1E #1E7D1F #1E4C7D
split-complementary
#7D1E7C #4C7D1E #1E7D4F
monochromatic
#1A061A #4C124B #7D1E7C #AE2AAD #D243D0

Accessibility & contrast

On white

8.94
#7D1E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7D1E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1E7C
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E7C#FFFFFF#000000##FFFFFF
##7D1E7C1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C427F
Deuteranopia (green-blind)
#394E7A
Tritanopia (blue-blind)
#812D4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1e7c;
/* rgb */ color: rgb(125, 30, 124);
/* oklch */ color: oklch(42.9% 0.168 328.5);
Tailwind
colors: {
  custom: {
    50: '#a665a2',
    500: '#7d1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e7c;
$custom-light: #a665a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e7c",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 300.632,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42923,
    "c": 0.16798,
    "h": 328.5
  },
  "luminance": 0.06744
}

Semantic roles & 50–950 ramp

primary
#7D1E7C
secondary
#46B048
accent
#E44543
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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