#7E31CF#7E31CF

#7E31CF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.225 H 300.5°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7E31CF
RGBrgb(126, 49, 207)
HSLhsl(269, 62%, 50%)
HSVhsv(269, 76%, 81%)
CMYKcmyk(39.1%, 76.3%, 0%, 18.8%)
CIE-LABlab(39.81, 61.53, -67.80)
CIE-LCHlch(39.81, 91.56, 312.22°)
OKLaboklab(50.9% 0.1142 -0.1937)
OKLCHoklch(50.9% 0.225 300.5)
XYZxyz(20.9622, 11.1371, 60.0647)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31CF #82CF31
analogous
#3133CF #7E31CF #CD31CF
triadic
#7E31CF #CF7E31 #31CF7E
tetradic
#7E31CF #CF3133 #82CF31 #31CFCD
square
#7E31CF #CF3133 #82CF31 #31CFCD
split-complementary
#7E31CF #CFCD31 #33CF31
monochromatic
#42196C #60259E #7E31CF #9D63DB #BC94E6

Accessibility & contrast

On white

6.51
#7E31CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7E31CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31CF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31CF#FFFFFF#000000##FFFFFF
##7E31CF1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#6B5B7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e31cf;
/* rgb */ color: rgb(126, 49, 207);
/* oklch */ color: oklch(50.9% 0.225 300.5);
Tailwind
colors: {
  custom: {
    50: '#aa71df',
    500: '#7e31cf',
    950: '#000000',
  },
}
SCSS
$custom: #7e31cf;
$custom-light: #aa71df;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31cf",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 269.241,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50901,
    "c": 0.22486,
    "h": 300.5
  },
  "luminance": 0.11137
}

Semantic roles & 50–950 ramp

primary
#7E31CF
secondary
#AFD18B
accent
#E54396
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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