#7E31C0#7E31C0

#7E31C0 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.210 H 304.1°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7E31C0
RGBrgb(126, 49, 192)
HSLhsl(272, 59%, 47%)
HSVhsv(272, 74%, 75%)
CMYKcmyk(34.4%, 74.5%, 0%, 24.7%)
CIE-LABlab(38.62, 58.03, -61.01)
CIE-LCHlch(38.62, 84.20, 313.56°)
OKLaboklab(49.69% 0.1177 -0.1738)
OKLCHoklch(49.69% 0.21 304.1)
XYZxyz(19.2147, 10.4381, 50.8614)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31C0 #73C031
analogous
#3731C0 #7E31C0 #C031BA
triadic
#7E31C0 #C07E31 #31C07E
tetradic
#7E31C0 #C03731 #73C031 #31BAC0
square
#7E31C0 #C03731 #73C031 #31BAC0
split-complementary
#7E31C0 #BAC031 #31C037
monochromatic
#3E185E #5E258F #7E31C0 #9C59D5 #B98AE1

Accessibility & contrast

On white

6.80
#7E31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7E31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31C0
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31C0#FFFFFF#000000##FFFFFF
##7E31C01.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#715576
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e31c0;
/* rgb */ color: rgb(126, 49, 192);
/* oklch */ color: oklch(49.7% 0.210 304.1);
Tailwind
colors: {
  custom: {
    50: '#a971d4',
    500: '#7e31c0',
    950: '#000000',
  },
}
SCSS
$custom: #7e31c0;
$custom-light: #a971d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31c0",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 272.308,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49692,
    "c": 0.20985,
    "h": 304.1
  },
  "luminance": 0.10438
}

Semantic roles & 50–950 ramp

primary
#7E31C0
secondary
#A4CB82
accent
#E3458E
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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