#7E2991#7E2991

#7E2991 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.174 H 319.7°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7E2991
RGBrgb(126, 41, 145)
HSLhsl(289, 56%, 36%)
HSVhsv(289, 72%, 57%)
CMYKcmyk(13.1%, 71.7%, 0%, 43.1%)
CIE-LABlab(34.12, 51.17, -40.12)
CIE-LCHlch(34.12, 65.02, 321.90°)
OKLaboklab(45.45% 0.1324 -0.1124)
OKLCHoklch(45.45% 0.174 319.7)
XYZxyz(14.5073, 8.0665, 27.5754)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2991 #3C9129
analogous
#4A2991 #7E2991 #912970
triadic
#7E2991 #917E29 #29917E
tetradic
#7E2991 #914A29 #3C9129 #297091
square
#7E2991 #914A29 #3C9129 #297091
split-complementary
#7E2991 #709129 #29914A
monochromatic
#2B0E32 #551C61 #7E2991 #A736C1 #BE62D3

Accessibility & contrast

On white

8.04
#7E2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2991
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2991#FFFFFF#000000##FFFFFF
##7E29911.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B94
Deuteranopia (green-blind)
#31538F
Tritanopia (blue-blind)
#7E3D5A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2991;
/* rgb */ color: rgb(126, 41, 145);
/* oklch */ color: oklch(45.4% 0.174 319.7);
Tailwind
colors: {
  custom: {
    50: '#a76bb2',
    500: '#7e2991',
    950: '#000000',
  },
}
SCSS
$custom: #7e2991;
$custom-light: #a76bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2991",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 289.038,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45447,
    "c": 0.17367,
    "h": 319.7
  },
  "luminance": 0.08066
}

Semantic roles & 50–950 ramp

primary
#7E2991
secondary
#6EB85D
accent
#DF4964
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2991

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

Preview Lab → · Contrast checker → · Palette generator →

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