#7E2791#7E2791

#7E2791 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.176 H 319.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7E2791
RGBrgb(126, 39, 145)
HSLhsl(289, 58%, 36%)
HSVhsv(289, 73%, 57%)
CMYKcmyk(13.1%, 73.1%, 0%, 43.1%)
CIE-LABlab(33.84, 51.97, -40.57)
CIE-LCHlch(33.84, 65.93, 322.02°)
OKLaboklab(45.25% 0.1345 -0.1137)
OKLCHoklch(45.25% 0.176 319.8)
XYZxyz(14.4399, 7.9317, 27.5529)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2791 #3A9127
analogous
#492791 #7E2791 #91276F
triadic
#7E2791 #917E27 #27917E
tetradic
#7E2791 #914927 #3A9127 #276F91
square
#7E2791 #914927 #3A9127 #276F91
split-complementary
#7E2791 #6F9127 #279149
monochromatic
#2A0D31 #541A61 #7E2791 #A834C1 #BF5FD4

Accessibility & contrast

On white

8.12
#7E2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2791
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2791#FFFFFF#000000##FFFFFF
##7E27911.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#30538F
Tritanopia (blue-blind)
#7E3B59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2791;
/* rgb */ color: rgb(126, 39, 145);
/* oklch */ color: oklch(45.2% 0.176 319.8);
Tailwind
colors: {
  custom: {
    50: '#a76ab2',
    500: '#7e2791',
    950: '#000000',
  },
}
SCSS
$custom: #7e2791;
$custom-light: #a76ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2791",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 289.245,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45246,
    "c": 0.17612,
    "h": 319.8
  },
  "luminance": 0.07931
}

Semantic roles & 50–950 ramp

primary
#7E2791
secondary
#6CB95B
accent
#E14763
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2791

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

Preview Lab → · Contrast checker → · Palette generator →

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