#7E1794#7E1794

#7E1794 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.2% C 0.195 H 319.4°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7E1794
RGBrgb(126, 23, 148)
HSLhsl(289, 73%, 34%)
HSVhsv(289, 84%, 58%)
CMYKcmyk(14.9%, 84.5%, 0%, 42%)
CIE-LABlab(32.23, 57.77, -45.00)
CIE-LCHlch(32.23, 73.23, 322.08°)
OKLaboklab(44.17% 0.1479 -0.1266)
OKLCHoklch(44.17% 0.195 319.4)
XYZxyz(14.2552, 7.1873, 28.6476)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1794 #2D9417
analogous
#3F1794 #7E1794 #94176B
triadic
#7E1794 #947E17 #17947E
tetradic
#7E1794 #943F17 #2D9417 #176B94
square
#7E1794 #943F17 #2D9417 #176B94
split-complementary
#7E1794 #6B9417 #17943F
monochromatic
#24072A #510F5F #7E1794 #AB1FC9 #C644E2

Accessibility & contrast

On white

8.62
#7E1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7E1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1794
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1794#FFFFFF#000000##FFFFFF
##7E17941.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#234F91
Tritanopia (blue-blind)
#7E3558
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1794;
/* rgb */ color: rgb(126, 23, 148);
/* oklch */ color: oklch(44.2% 0.195 319.4);
Tailwind
colors: {
  custom: {
    50: '#a864b4',
    500: '#7e1794',
    950: '#000000',
  },
}
SCSS
$custom: #7e1794;
$custom-light: #a864b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1794",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 289.44,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44171,
    "c": 0.19466,
    "h": 319.4
  },
  "luminance": 0.07187
}

Semantic roles & 50–950 ramp

primary
#7E1794
secondary
#5AC344
accent
#F03858
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1794

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

Preview Lab → · Contrast checker → · Palette generator →

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