#7D1F7F#7D1F7F

#7D1F7F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.169 H 327.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7D1F7F
RGBrgb(125, 31, 127)
HSLhsl(299, 61%, 31%)
HSVhsv(299, 76%, 50%)
CMYKcmyk(1.6%, 75.6%, 0%, 50.2%)
CIE-LABlab(31.52, 51.33, -33.13)
CIE-LCHlch(31.52, 61.09, 327.16°)
OKLaboklab(43.19% 0.1422 -0.0919)
OKLCHoklch(43.19% 0.169 327.1)
XYZxyz(12.7780, 6.8732, 20.7282)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F7F #217F1F
analogous
#4D1F7F #7D1F7F #7F1F51
triadic
#7D1F7F #7F7D1F #1F7F7D
tetradic
#7D1F7F #7F4D1F #217F1F #1F517F
square
#7D1F7F #7F4D1F #217F1F #1F517F
split-complementary
#7D1F7F #517F1F #1F7F4D
monochromatic
#1C071D #4D134E #7D1F7F #AD2BB0 #CF46D2

Accessibility & contrast

On white

8.84
#7D1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7D1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F7F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F7F#FFFFFF#000000##FFFFFF
##7D1F7F1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074382
Deuteranopia (green-blind)
#374E7D
Tritanopia (blue-blind)
#812F4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1f7f;
/* rgb */ color: rgb(125, 31, 127);
/* oklch */ color: oklch(43.2% 0.169 327.1);
Tailwind
colors: {
  custom: {
    50: '#a665a4',
    500: '#7d1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f7f;
$custom-light: #a665a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f7f",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 298.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43194,
    "c": 0.16934,
    "h": 327.1
  },
  "luminance": 0.06872
}

Semantic roles & 50–950 ramp

primary
#7D1F7F
secondary
#4AB248
accent
#E44447
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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