#7F1D7D#7F1D7D

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

Color values

HEX#7F1D7D
RGBrgb(127, 29, 125)
HSLhsl(301, 63%, 31%)
HSVhsv(301, 77%, 50%)
CMYKcmyk(0%, 77.2%, 1.6%, 50.2%)
CIE-LABlab(31.51, 52.10, -31.85)
CIE-LCHlch(31.51, 61.07, 328.56°)
OKLaboklab(43.22% 0.1464 -0.0882)
OKLCHoklch(43.22% 0.171 328.9)
XYZxyz(12.8933, 6.8724, 20.0455)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D7D #1D7F1F
analogous
#501D7F #7F1D7D #7F1D4C
triadic
#7F1D7D #7D7F1D #1D7D7F
tetradic
#7F1D7D #7F501D #1D7F1F #1D4C7F
square
#7F1D7D #7F501D #1D7F1F #1D4C7F
split-complementary
#7F1D7D #4C7F1D #1D7F50
monochromatic
#1B061B #4D124C #7F1D7D #B128AE #D442D1

Accessibility & contrast

On white

8.85
#7F1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1D7D
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D7D#FFFFFF#000000##FFFFFF
##7F1D7D1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4280
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#842C4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1d7d;
/* rgb */ color: rgb(127, 29, 125);
/* oklch */ color: oklch(43.2% 0.171 328.9);
Tailwind
colors: {
  custom: {
    50: '#a765a3',
    500: '#7f1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d7d;
$custom-light: #a765a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d7d",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 301.224,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43221,
    "c": 0.17089,
    "h": 328.9
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

primary
#7F1D7D
secondary
#45B248
accent
#E64542
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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