#7E1A7E#7E1A7E

#7E1A7E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.174 H 328.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7E1A7E
RGBrgb(126, 26, 126)
HSLhsl(300, 66%, 30%)
HSVhsv(300, 79%, 49%)
CMYKcmyk(0%, 79.4%, 0%, 50.6%)
CIE-LABlab(31.07, 52.99, -33.20)
CIE-LCHlch(31.07, 62.53, 327.93°)
OKLaboklab(42.89% 0.1479 -0.0921)
OKLCHoklch(42.89% 0.174 328.1)
XYZxyz(12.7393, 6.6817, 20.3533)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A7E #1A7E1A
analogous
#4C1A7E #7E1A7E #7E1A4C
triadic
#7E1A7E #7E7E1A #1A7E7E
tetradic
#7E1A7E #7E4C1A #1A7E1A #1A4C7E
square
#7E1A7E #7E4C1A #1A7E1A #1A4C7E
split-complementary
#7E1A7E #4C7E1A #1A7E4C
monochromatic
#190519 #4B104B #7E1A7E #B124B1 #D73CD7

Accessibility & contrast

On white

8.99
#7E1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A7E
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A7E#FFFFFF#000000##FFFFFF
##7E1A7E1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#374E7C
Tritanopia (blue-blind)
#822B4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1a7e;
/* rgb */ color: rgb(126, 26, 126);
/* oklch */ color: oklch(42.9% 0.174 328.1);
Tailwind
colors: {
  custom: {
    50: '#a764a4',
    500: '#7e1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a7e;
$custom-light: #a764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a7e",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4289,
    "c": 0.17422,
    "h": 328.1
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#7E1A7E
secondary
#42B242
accent
#E93F3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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