#7E31C9#7E31C9

#7E31C9 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.219 H 301.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#7E31C9
RGBrgb(126, 49, 201)
HSLhsl(270, 61%, 49%)
HSVhsv(270, 76%, 79%)
CMYKcmyk(37.3%, 75.6%, 0%, 21.2%)
CIE-LABlab(39.33, 60.12, -65.11)
CIE-LCHlch(39.33, 88.63, 312.72°)
OKLaboklab(50.41% 0.1156 -0.1858)
OKLCHoklch(50.41% 0.219 301.9)
XYZxyz(20.2426, 10.8492, 56.2747)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31C9 #7CC931
analogous
#3231C9 #7E31C9 #C931C8
triadic
#7E31C9 #C97E31 #31C97E
tetradic
#7E31C9 #C93231 #7CC931 #31C8C9
square
#7E31C9 #C93231 #7CC931 #31C8C9
split-complementary
#7E31C9 #C8C931 #31C932
monochromatic
#401967 #5F2598 #7E31C9 #9C5FD8 #BB90E4

Accessibility & contrast

On white

6.63
#7E31C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7E31C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31C9
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31C9#FFFFFF#000000##FFFFFF
##7E31C91.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCD
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#6E587B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e31c9;
/* rgb */ color: rgb(126, 49, 201);
/* oklch */ color: oklch(50.4% 0.219 301.9);
Tailwind
colors: {
  custom: {
    50: '#aa71da',
    500: '#7e31c9',
    950: '#000000',
  },
}
SCSS
$custom: #7e31c9;
$custom-light: #aa71da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31c9",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 270.395,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50411,
    "c": 0.21886,
    "h": 301.9
  },
  "luminance": 0.10849
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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