#7E31E2#7E31E2

#7E31E2 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.5% C 0.244 H 296.6°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7E31E2
RGBrgb(126, 49, 226)
HSLhsl(266, 75%, 54%)
HSVhsv(266, 78%, 89%)
CMYKcmyk(44.2%, 78.3%, 0%, 11.4%)
CIE-LABlab(41.41, 66.03, -76.10)
CIE-LCHlch(41.41, 100.75, 310.95°)
OKLaboklab(52.51% 0.109 -0.2181)
OKLCHoklch(52.51% 0.244 296.6)
XYZxyz(23.4263, 12.1227, 73.0424)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31E2 #95E231
analogous
#313DE2 #7E31E2 #D731E2
triadic
#7E31E2 #E27E31 #31E27E
tetradic
#7E31E2 #E2313D #95E231 #31E2D7
square
#7E31E2 #E2313D #95E231 #31E2D7
split-complementary
#7E31E2 #E2D731 #3DE231
monochromatic
#451386 #601ABB #7E31E2 #A067EA #C19CF1

Accessibility & contrast

On white

6.13
#7E31E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7E31E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31E2
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31E2#FFFFFF#000000##FFFFFF
##7E31E21.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#63638A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e31e2;
/* rgb */ color: rgb(126, 49, 226);
/* oklch */ color: oklch(52.5% 0.244 296.6);
Tailwind
colors: {
  custom: {
    50: '#ac72ec',
    500: '#7e31e2',
    950: '#000000',
  },
}
SCSS
$custom: #7e31e2;
$custom-light: #ac72ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31e2",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 266.102,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5251,
    "c": 0.24377,
    "h": 296.6
  },
  "luminance": 0.12123
}

Semantic roles & 50–950 ramp

primary
#7E31E2
secondary
#BCDD92
accent
#F236A0
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7E31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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