#7E32C6#7E32C6

#7E32C6 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.215 H 302.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7E32C6
RGBrgb(126, 50, 198)
HSLhsl(271, 60%, 49%)
HSVhsv(271, 75%, 78%)
CMYKcmyk(36.4%, 74.7%, 0%, 22.4%)
CIE-LABlab(39.23, 59.01, -63.52)
CIE-LCHlch(39.23, 86.70, 312.89°)
OKLaboklab(50.27% 0.1155 -0.1811)
OKLCHoklch(50.27% 0.215 302.5)
XYZxyz(19.9354, 10.7940, 54.4483)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32C6 #7AC632
analogous
#3432C6 #7E32C6 #C632C4
triadic
#7E32C6 #C67E32 #32C67E
tetradic
#7E32C6 #C63432 #7AC632 #32C4C6
square
#7E32C6 #C63432 #7AC632 #32C4C6
split-complementary
#7E32C6 #C4C632 #32C634
monochromatic
#401964 #5F2695 #7E32C6 #9C5FD7 #BA90E3

Accessibility & contrast

On white

6.65
#7E32C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7E32C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E32C6
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32C6#FFFFFF#000000##FFFFFF
##7E32C61.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#6F587A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e32c6;
/* rgb */ color: rgb(126, 50, 198);
/* oklch */ color: oklch(50.3% 0.215 302.5);
Tailwind
colors: {
  custom: {
    50: '#aa72d8',
    500: '#7e32c6',
    950: '#000000',
  },
}
SCSS
$custom: #7e32c6;
$custom-light: #aa72d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32c6",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 198
  },
  "hsl": {
    "h": 270.811,
    "s": 59.677,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50271,
    "c": 0.21481,
    "h": 302.5
  },
  "luminance": 0.10794
}

Semantic roles & 50–950 ramp

primary
#7E32C6
secondary
#A9CD86
accent
#E34592
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E32C6

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

Preview Lab → · Contrast checker → · Palette generator →

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