#7E32B5#7E32B5

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

Color values

HEX#7E32B5
RGBrgb(126, 50, 181)
HSLhsl(275, 57%, 45%)
HSVhsv(275, 72%, 71%)
CMYKcmyk(30.4%, 72.4%, 0%, 29%)
CIE-LABlab(37.94, 55.08, -55.64)
CIE-LCHlch(37.94, 78.30, 314.71°)
OKLaboklab(48.95% 0.1188 -0.158)
OKLCHoklch(48.95% 0.198 306.9)
XYZxyz(18.0835, 10.0532, 44.6949)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32B5 #69B532
analogous
#3C32B5 #7E32B5 #B532AA
triadic
#7E32B5 #B57E32 #32B57E
tetradic
#7E32B5 #B53C32 #69B532 #32AAB5
square
#7E32B5 #B53C32 #69B532 #32AAB5
split-complementary
#7E32B5 #AAB532 #32B53C
monochromatic
#3B1855 #5D2585 #7E32B5 #9C54D0 #B884DD

Accessibility & contrast

On white

6.98
#7E32B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7E32B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E32B5
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32B5#FFFFFF#000000##FFFFFF
##7E32B51.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#755170
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e32b5;
/* rgb */ color: rgb(126, 50, 181);
/* oklch */ color: oklch(49.0% 0.198 306.9);
Tailwind
colors: {
  custom: {
    50: '#a871cc',
    500: '#7e32b5',
    950: '#000000',
  },
}
SCSS
$custom: #7e32b5;
$custom-light: #a871cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32b5",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 274.809,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48952,
    "c": 0.19766,
    "h": 306.9
  },
  "luminance": 0.10053
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E32B5

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

Preview Lab → · Contrast checker → · Palette generator →

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