#7E31C1#7E31C1

#7E31C1 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.8% C 0.211 H 303.8°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7E31C1
RGBrgb(126, 49, 193)
HSLhsl(272, 60%, 47%)
HSVhsv(272, 75%, 76%)
CMYKcmyk(34.7%, 74.6%, 0%, 24.3%)
CIE-LABlab(38.69, 58.26, -61.47)
CIE-LCHlch(38.69, 84.70, 313.46°)
OKLaboklab(49.77% 0.1174 -0.1751)
OKLCHoklch(49.77% 0.211 303.8)
XYZxyz(19.3259, 10.4825, 51.4469)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31C1 #74C131
analogous
#3631C1 #7E31C1 #C131BC
triadic
#7E31C1 #C17E31 #31C17E
tetradic
#7E31C1 #C13631 #74C131 #31BCC1
square
#7E31C1 #C13631 #74C131 #31BCC1
split-complementary
#7E31C1 #BCC131 #31C136
monochromatic
#3E185F #5E2590 #7E31C1 #9C5AD5 #B98BE2

Accessibility & contrast

On white

6.78
#7E31C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7E31C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31C1
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31C1#FFFFFF#000000##FFFFFF
##7E31C11.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#715577
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e31c1;
/* rgb */ color: rgb(126, 49, 193);
/* oklch */ color: oklch(49.8% 0.211 303.8);
Tailwind
colors: {
  custom: {
    50: '#a971d5',
    500: '#7e31c1',
    950: '#000000',
  },
}
SCSS
$custom: #7e31c1;
$custom-light: #a971d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31c1",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 272.083,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49771,
    "c": 0.21085,
    "h": 303.8
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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