#7E32B7#7E32B7

#7E32B7 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 49.1% C 0.200 H 306.4°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7E32B7
RGBrgb(126, 50, 183)
HSLhsl(274, 57%, 46%)
HSVhsv(274, 73%, 72%)
CMYKcmyk(31.1%, 72.7%, 0%, 28.2%)
CIE-LABlab(38.09, 55.54, -56.58)
CIE-LCHlch(38.09, 79.29, 314.47°)
OKLaboklab(49.1% 0.1184 -0.1608)
OKLCHoklch(49.1% 0.2 306.4)
XYZxyz(18.2902, 10.1359, 45.7834)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32B7 #6BB732
analogous
#3B32B7 #7E32B7 #B732AD
triadic
#7E32B7 #B77E32 #32B77E
tetradic
#7E32B7 #B73B32 #6BB732 #32ADB7
square
#7E32B7 #B73B32 #6BB732 #32ADB7
split-complementary
#7E32B7 #ADB732 #32B73B
monochromatic
#3C1857 #5D2587 #7E32B7 #9C56D1 #B886DE

Accessibility & contrast

On white

6.94
#7E32B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7E32B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E32B7
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32B7#FFFFFF#000000##FFFFFF
##7E32B71.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#745172
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e32b7;
/* rgb */ color: rgb(126, 50, 183);
/* oklch */ color: oklch(49.1% 0.200 306.4);
Tailwind
colors: {
  custom: {
    50: '#a871cd',
    500: '#7e32b7',
    950: '#000000',
  },
}
SCSS
$custom: #7e32b7;
$custom-light: #a871cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32b7",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 274.286,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49103,
    "c": 0.19968,
    "h": 306.4
  },
  "luminance": 0.10136
}

Semantic roles & 50–950 ramp

primary
#7E32B7
secondary
#9DC77D
accent
#E04789
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E32B7

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

Preview Lab → · Contrast checker → · Palette generator →

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