#7E31AF#7E31AF

#7E31AF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.193 H 308.8°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7E31AF
RGBrgb(126, 49, 175)
HSLhsl(277, 56%, 44%)
HSVhsv(277, 72%, 69%)
CMYKcmyk(28%, 72%, 0%, 31.4%)
CIE-LABlab(37.35, 54.16, -53.04)
CIE-LCHlch(37.35, 75.81, 315.60°)
OKLaboklab(48.4% 0.1207 -0.1503)
OKLCHoklch(48.4% 0.193 308.8)
XYZxyz(17.4388, 9.7277, 41.5081)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31AF #62AF31
analogous
#3F31AF #7E31AF #AF31A1
triadic
#7E31AF #AF7E31 #31AF7E
tetradic
#7E31AF #AF3F31 #62AF31 #31A1AF
square
#7E31AF #AF3F31 #62AF31 #31A1AF
split-complementary
#7E31AF #A1AF31 #31AF3F
monochromatic
#39164F #5C247F #7E31AF #9D4FCE #B77FDB

Accessibility & contrast

On white

7.13
#7E31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7E31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E31AF
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31AF#FFFFFF#000000##FFFFFF
##7E31AF1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#1059AC
Tritanopia (blue-blind)
#774E6D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e31af;
/* rgb */ color: rgb(126, 49, 175);
/* oklch */ color: oklch(48.4% 0.193 308.8);
Tailwind
colors: {
  custom: {
    50: '#a870c8',
    500: '#7e31af',
    950: '#000000',
  },
}
SCSS
$custom: #7e31af;
$custom-light: #a870c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31af",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 276.667,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48396,
    "c": 0.19281,
    "h": 308.8
  },
  "luminance": 0.09727
}

Semantic roles & 50–950 ramp

primary
#7E31AF
secondary
#95C478
accent
#E04883
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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