#7E1C7F#7E1C7F

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

Color values

HEX#7E1C7F
RGBrgb(126, 28, 127)
HSLhsl(299, 64%, 30%)
HSVhsv(299, 78%, 50%)
CMYKcmyk(0.8%, 78%, 0%, 50.2%)
CIE-LABlab(31.35, 52.54, -33.39)
CIE-LCHlch(31.35, 62.25, 327.57°)
OKLaboklab(43.11% 0.1461 -0.0926)
OKLCHoklch(43.11% 0.173 327.6)
XYZxyz(12.8500, 6.7994, 20.7102)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C7F #1D7F1C
analogous
#4C1C7F #7E1C7F #7F1C4E
triadic
#7E1C7F #7F7E1C #1C7F7E
tetradic
#7E1C7F #7F4C1C #1D7F1C #1C4E7F
square
#7E1C7F #7F4C1C #1D7F1C #1C4E7F
split-complementary
#7E1C7F #4E7F1C #1C7F4C
monochromatic
#1B061B #4C114D #7E1C7F #B027B1 #D340D5

Accessibility & contrast

On white

8.90
#7E1C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E1C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C7F
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C7F#FFFFFF#000000##FFFFFF
##7E1C7F1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1c7f;
/* rgb */ color: rgb(126, 28, 127);
/* oklch */ color: oklch(43.1% 0.173 327.6);
Tailwind
colors: {
  custom: {
    50: '#a764a4',
    500: '#7e1c7f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c7f;
$custom-light: #a764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c7f",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 299.394,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.43106,
    "c": 0.17303,
    "h": 327.6
  },
  "luminance": 0.06798
}

Semantic roles & 50–950 ramp

primary
#7E1C7F
secondary
#45B344
accent
#E74143
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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