#7E1E7E#7E1E7E

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

Color values

HEX#7E1E7E
RGBrgb(126, 30, 126)
HSLhsl(300, 62%, 31%)
HSVhsv(300, 76%, 49%)
CMYKcmyk(0%, 76.2%, 0%, 50.6%)
CIE-LABlab(31.51, 51.72, -32.50)
CIE-LCHlch(31.51, 61.08, 327.86°)
OKLaboklab(43.21% 0.1443 -0.0901)
OKLCHoklch(43.21% 0.17 328)
XYZxyz(12.8342, 6.8715, 20.3850)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E7E #1E7E1E
analogous
#4E1E7E #7E1E7E #7E1E4E
triadic
#7E1E7E #7E7E1E #1E7E7E
tetradic
#7E1E7E #7E4E1E #1E7E1E #1E4E7E
square
#7E1E7E #7E4E1E #1E7E1E #1E4E7E
split-complementary
#7E1E7E #4E7E1E #1E7E4E
monochromatic
#1B061B #4D124D #7E1E7E #AF2AAF #D244D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1E7E#FFFFFF#000000##FFFFFF
##7E1E7E1.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)
#094281
Deuteranopia (green-blind)
#394E7C
Tritanopia (blue-blind)
#822D4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1e7e;
/* rgb */ color: rgb(126, 30, 126);
/* oklch */ color: oklch(43.2% 0.170 328.0);
Tailwind
colors: {
  custom: {
    50: '#a765a4',
    500: '#7e1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e7e;
$custom-light: #a765a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e7e",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43205,
    "c": 0.17011,
    "h": 328
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

primary
#7E1E7E
secondary
#47B147
accent
#E54343
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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