#7E32C7#7E32C7

#7E32C7 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.216 H 302.3°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#7E32C7
RGBrgb(126, 50, 199)
HSLhsl(271, 60%, 49%)
HSVhsv(271, 75%, 78%)
CMYKcmyk(36.7%, 74.9%, 0%, 22%)
CIE-LABlab(39.31, 59.24, -63.97)
CIE-LCHlch(39.31, 87.19, 312.80°)
OKLaboklab(50.35% 0.1152 -0.1825)
OKLCHoklch(50.35% 0.216 302.3)
XYZxyz(20.0511, 10.8403, 55.0578)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32C7 #7BC732
analogous
#3432C7 #7E32C7 #C732C6
triadic
#7E32C7 #C77E32 #32C77E
tetradic
#7E32C7 #C73432 #7BC732 #32C6C7
square
#7E32C7 #C73432 #7BC732 #32C6C7
split-complementary
#7E32C7 #C6C732 #32C734
monochromatic
#401965 #5F2696 #7E32C7 #9C5FD7 #BB90E3

Accessibility & contrast

On white

6.63
#7E32C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7E32C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E32C7
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32C7#FFFFFF#000000##FFFFFF
##7E32C71.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#005CC4
Tritanopia (blue-blind)
#6E587B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e32c7;
/* rgb */ color: rgb(126, 50, 199);
/* oklch */ color: oklch(50.4% 0.216 302.3);
Tailwind
colors: {
  custom: {
    50: '#aa72d9',
    500: '#7e32c7',
    950: '#000000',
  },
}
SCSS
$custom: #7e32c7;
$custom-light: #aa72d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32c7",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 199
  },
  "hsl": {
    "h": 270.604,
    "s": 59.839,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50351,
    "c": 0.21582,
    "h": 302.3
  },
  "luminance": 0.1084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E32C7

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

Preview Lab → · Contrast checker → · Palette generator →

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