#7E2794#7E2794

#7E2794 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.179 H 318.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7E2794
RGBrgb(126, 39, 148)
HSLhsl(288, 58%, 37%)
HSVhsv(288, 74%, 58%)
CMYKcmyk(14.9%, 73.6%, 0%, 42%)
CIE-LABlab(34.04, 52.56, -42.10)
CIE-LCHlch(34.04, 67.34, 321.31°)
OKLaboklab(45.45% 0.1343 -0.1181)
OKLCHoklch(45.45% 0.179 318.7)
XYZxyz(14.6743, 8.0255, 28.7873)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2794 #3D9427
analogous
#482794 #7E2794 #942774
triadic
#7E2794 #947E27 #27947E
tetradic
#7E2794 #944827 #3D9427 #277494
square
#7E2794 #944827 #3D9427 #277494
split-complementary
#7E2794 #749427 #279448
monochromatic
#2C0D33 #551A64 #7E2794 #A734C4 #BE60D5

Accessibility & contrast

On white

8.06
#7E2794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E2794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2794
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2794#FFFFFF#000000##FFFFFF
##7E27941.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#2D5392
Tritanopia (blue-blind)
#7E3D5B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2794;
/* rgb */ color: rgb(126, 39, 148);
/* oklch */ color: oklch(45.4% 0.179 318.7);
Tailwind
colors: {
  custom: {
    50: '#a76ab4',
    500: '#7e2794',
    950: '#000000',
  },
}
SCSS
$custom: #7e2794;
$custom-light: #a76ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2794",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 287.89,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45448,
    "c": 0.17885,
    "h": 318.7
  },
  "luminance": 0.08025
}

Semantic roles & 50–950 ramp

primary
#7E2794
secondary
#6FBB5C
accent
#E24666
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2794

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

Preview Lab → · Contrast checker → · Palette generator →

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