#7E31AE#7E31AE

#7E31AE is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.3% C 0.192 H 309.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7E31AE
RGBrgb(126, 49, 174)
HSLhsl(277, 56%, 44%)
HSVhsv(277, 72%, 68%)
CMYKcmyk(27.6%, 71.8%, 0%, 31.8%)
CIE-LABlab(37.28, 53.94, -52.56)
CIE-LCHlch(37.28, 75.31, 315.74°)
OKLaboklab(48.32% 0.1209 -0.1489)
OKLCHoklch(48.32% 0.192 309.1)
XYZxyz(17.3409, 9.6886, 40.9928)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31AE #61AE31
analogous
#3F31AE #7E31AE #AE319F
triadic
#7E31AE #AE7E31 #31AE7E
tetradic
#7E31AE #AE3F31 #61AE31 #319FAE
square
#7E31AE #AE3F31 #61AE31 #319FAE
split-complementary
#7E31AE #9FAE31 #31AE3F
monochromatic
#39164E #5B247E #7E31AE #9D4FCD #B77FDB

Accessibility & contrast

On white

7.15
#7E31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7E31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E31AE
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31AE#FFFFFF#000000##FFFFFF
##7E31AE1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#1359AB
Tritanopia (blue-blind)
#774D6C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e31ae;
/* rgb */ color: rgb(126, 49, 174);
/* oklch */ color: oklch(48.3% 0.192 309.1);
Tailwind
colors: {
  custom: {
    50: '#a870c7',
    500: '#7e31ae',
    950: '#000000',
  },
}
SCSS
$custom: #7e31ae;
$custom-light: #a870c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31ae",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 276.96,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48323,
    "c": 0.1918,
    "h": 309.1
  },
  "luminance": 0.09688
}

Semantic roles & 50–950 ramp

primary
#7E31AE
secondary
#95C477
accent
#DF4882
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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