#7E32B6#7E32B6

#7E32B6 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 49.0% C 0.199 H 306.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7E32B6
RGBrgb(126, 50, 182)
HSLhsl(275, 57%, 45%)
HSVhsv(275, 73%, 71%)
CMYKcmyk(30.8%, 72.5%, 0%, 28.6%)
CIE-LABlab(38.01, 55.31, -56.11)
CIE-LCHlch(38.01, 78.79, 314.59°)
OKLaboklab(49.03% 0.1186 -0.1594)
OKLCHoklch(49.03% 0.199 306.7)
XYZxyz(18.1865, 10.0944, 45.2372)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32B6 #6AB632
analogous
#3C32B6 #7E32B6 #B632AC
triadic
#7E32B6 #B67E32 #32B67E
tetradic
#7E32B6 #B63C32 #6AB632 #32ACB6
square
#7E32B6 #B63C32 #6AB632 #32ACB6
split-complementary
#7E32B6 #ACB632 #32B63C
monochromatic
#3C1856 #5D2586 #7E32B6 #9C55D0 #B885DD

Accessibility & contrast

On white

6.96
#7E32B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7E32B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E32B6
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32B6#FFFFFF#000000##FFFFFF
##7E32B61.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#745171
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e32b6;
/* rgb */ color: rgb(126, 50, 182);
/* oklch */ color: oklch(49.0% 0.199 306.7);
Tailwind
colors: {
  custom: {
    50: '#a871cd',
    500: '#7e32b6',
    950: '#000000',
  },
}
SCSS
$custom: #7e32b6;
$custom-light: #a871cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32b6",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 182
  },
  "hsl": {
    "h": 274.545,
    "s": 56.897,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49027,
    "c": 0.19866,
    "h": 306.7
  },
  "luminance": 0.10094
}

Semantic roles & 50–950 ramp

primary
#7E32B6
secondary
#9CC77D
accent
#E04888
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E32B6

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

Preview Lab → · Contrast checker → · Palette generator →

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