#7E31CA#7E31CA

#7E31CA is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.220 H 301.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#7E31CA
RGBrgb(126, 49, 202)
HSLhsl(270, 61%, 49%)
HSVhsv(270, 76%, 79%)
CMYKcmyk(37.6%, 75.7%, 0%, 20.8%)
CIE-LABlab(39.41, 60.36, -65.56)
CIE-LCHlch(39.41, 89.11, 312.63°)
OKLaboklab(50.49% 0.1154 -0.1871)
OKLCHoklch(50.49% 0.22 301.7)
XYZxyz(20.3606, 10.8964, 56.8962)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31CA #7DCA31
analogous
#3231CA #7E31CA #CA31CA
triadic
#7E31CA #CA7E31 #31CA7E
tetradic
#7E31CA #CA3231 #7DCA31 #31CACA
square
#7E31CA #CA3231 #7DCA31 #31CACA
split-complementary
#7E31CA #CACA31 #31CA32
monochromatic
#411967 #5F2599 #7E31CA #9C60D8 #BB91E4

Accessibility & contrast

On white

6.61
#7E31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7E31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31CA
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31CA#FFFFFF#000000##FFFFFF
##7E31CA1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#6D597C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e31ca;
/* rgb */ color: rgb(126, 49, 202);
/* oklch */ color: oklch(50.5% 0.220 301.7);
Tailwind
colors: {
  custom: {
    50: '#aa71db',
    500: '#7e31ca',
    950: '#000000',
  },
}
SCSS
$custom: #7e31ca;
$custom-light: #aa71db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31ca",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 270.196,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50492,
    "c": 0.21986,
    "h": 301.7
  },
  "luminance": 0.10897
}

Semantic roles & 50–950 ramp

primary
#7E31CA
secondary
#ABCF88
accent
#E44493
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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