#7E2591#7E2591

#7E2591 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.178 H 319.9°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7E2591
RGBrgb(126, 37, 145)
HSLhsl(289, 59%, 36%)
HSVhsv(289, 74%, 57%)
CMYKcmyk(13.1%, 74.5%, 0%, 43.1%)
CIE-LABlab(33.57, 52.73, -41.00)
CIE-LCHlch(33.57, 66.80, 322.13°)
OKLaboklab(45.05% 0.1366 -0.1149)
OKLCHoklch(45.05% 0.178 319.9)
XYZxyz(14.3759, 7.8038, 27.5316)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2591 #389125
analogous
#482591 #7E2591 #91256E
triadic
#7E2591 #917E25 #25917E
tetradic
#7E2591 #914825 #389125 #256E91
square
#7E2591 #914825 #389125 #256E91
split-complementary
#7E2591 #6E9125 #259148
monochromatic
#290C2F #541960 #7E2591 #A831C2 #C05BD5

Accessibility & contrast

On white

8.20
#7E2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2591
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2591#FFFFFF#000000##FFFFFF
##7E25911.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#2F528F
Tritanopia (blue-blind)
#7E3A59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2591;
/* rgb */ color: rgb(126, 37, 145);
/* oklch */ color: oklch(45.1% 0.178 319.9);
Tailwind
colors: {
  custom: {
    50: '#a769b2',
    500: '#7e2591',
    950: '#000000',
  },
}
SCSS
$custom: #7e2591;
$custom-light: #a769b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2591",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 289.444,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45054,
    "c": 0.17848,
    "h": 319.9
  },
  "luminance": 0.07803
}

Semantic roles & 50–950 ramp

primary
#7E2591
secondary
#69BA58
accent
#E34561
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2591

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

Preview Lab → · Contrast checker → · Palette generator →

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