#7E31A4#7E31A4

#7E31A4 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.182 H 312.2°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7E31A4
RGBrgb(126, 49, 164)
HSLhsl(280, 54%, 42%)
HSVhsv(280, 70%, 64%)
CMYKcmyk(23.2%, 70.1%, 0%, 35.7%)
CIE-LABlab(36.58, 51.73, -47.70)
CIE-LCHlch(36.58, 70.37, 317.32°)
OKLaboklab(47.6% 0.1221 -0.1347)
OKLCHoklch(47.6% 0.182 312.2)
XYZxyz(16.4021, 9.3130, 36.0483)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31A4 #57A431
analogous
#4531A4 #7E31A4 #A43191
triadic
#7E31A4 #A47E31 #31A47E
tetradic
#7E31A4 #A44531 #57A431 #3191A4
square
#7E31A4 #A44531 #57A431 #3191A4
split-complementary
#7E31A4 #91A431 #31A445
monochromatic
#361546 #5A2375 #7E31A4 #9F49C9 #B879D7

Accessibility & contrast

On white

7.34
#7E31A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7E31A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E31A4
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31A4#FFFFFF#000000##FFFFFF
##7E31A41.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#2558A1
Tritanopia (blue-blind)
#7A4967
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e31a4;
/* rgb */ color: rgb(126, 49, 164);
/* oklch */ color: oklch(47.6% 0.182 312.2);
Tailwind
colors: {
  custom: {
    50: '#a770c0',
    500: '#7e31a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e31a4;
$custom-light: #a770c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31a4",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 280.174,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47604,
    "c": 0.1818,
    "h": 312.2
  },
  "luminance": 0.09313
}

Semantic roles & 50–950 ramp

primary
#7E31A4
secondary
#8BBF72
accent
#DD4A7B
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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