#7E1D7F#7E1D7F

#7E1D7F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.172 H 327.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7E1D7F
RGBrgb(126, 29, 127)
HSLhsl(299, 63%, 31%)
HSVhsv(299, 77%, 50%)
CMYKcmyk(0.8%, 77.2%, 0%, 50.2%)
CIE-LABlab(31.46, 52.22, -33.21)
CIE-LCHlch(31.46, 61.89, 327.55°)
OKLaboklab(43.19% 0.1452 -0.0921)
OKLCHoklch(43.19% 0.172 327.6)
XYZxyz(12.8741, 6.8476, 20.7182)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D7F #1E7F1D
analogous
#4D1D7F #7E1D7F #7F1D4F
triadic
#7E1D7F #7F7E1D #1D7F7E
tetradic
#7E1D7F #7F4D1D #1E7F1D #1D4F7F
square
#7E1D7F #7F4D1D #1E7F1D #1D4F7F
split-complementary
#7E1D7F #4F7F1D #1D7F4D
monochromatic
#1B061B #4D124D #7E1D7F #AF28B1 #D242D4

Accessibility & contrast

On white

8.86
#7E1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1D7F
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D7F#FFFFFF#000000##FFFFFF
##7E1D7F1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044282
Deuteranopia (green-blind)
#374E7D
Tritanopia (blue-blind)
#822D4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1d7f;
/* rgb */ color: rgb(126, 29, 127);
/* oklch */ color: oklch(43.2% 0.172 327.6);
Tailwind
colors: {
  custom: {
    50: '#a765a4',
    500: '#7e1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d7f;
$custom-light: #a765a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d7f",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 299.388,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43185,
    "c": 0.172,
    "h": 327.6
  },
  "luminance": 0.06847
}

Semantic roles & 50–950 ramp

primary
#7E1D7F
secondary
#47B245
accent
#E64244
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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