#7E1A8E#7E1A8E

#7E1A8E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.187 H 321.6°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#7E1A8E
RGBrgb(126, 26, 142)
HSLhsl(292, 69%, 33%)
HSVhsv(292, 82%, 56%)
CMYKcmyk(11.3%, 81.7%, 0%, 44.3%)
CIE-LABlab(32.10, 55.83, -41.52)
CIE-LCHlch(32.10, 69.58, 323.36°)
OKLaboklab(43.95% 0.1466 -0.1164)
OKLCHoklch(43.95% 0.187 321.6)
XYZxyz(13.8555, 7.1282, 26.2320)
Luminance0.0713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A8E #2A8E1A
analogous
#441A8E #7E1A8E #8E1A64
triadic
#7E1A8E #8E7E1A #1A8E7E
tetradic
#7E1A8E #8E441A #2A8E1A #1A648E
square
#7E1A8E #8E441A #2A8E1A #1A648E
split-complementary
#7E1A8E #648E1A #1A8E44
monochromatic
#220727 #50115A #7E1A8E #AC23C2 #C845DD

Accessibility & contrast

On white

8.66
#7E1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A8E
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A8E#FFFFFF#000000##FFFFFF
##7E1A8E1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#2B4F8B
Tritanopia (blue-blind)
#7F3355
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1a8e;
/* rgb */ color: rgb(126, 26, 142);
/* oklch */ color: oklch(43.9% 0.187 321.6);
Tailwind
colors: {
  custom: {
    50: '#a764b0',
    500: '#7e1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a8e;
$custom-light: #a764b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a8e",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 291.724,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43946,
    "c": 0.1872,
    "h": 321.6
  },
  "luminance": 0.07127
}

Semantic roles & 50–950 ramp

primary
#7E1A8E
secondary
#56BE45
accent
#EC3C54
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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