#7E32AA#7E32AA

#7E32AA is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.1% C 0.187 H 310.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7E32AA
RGBrgb(126, 50, 170)
HSLhsl(278, 55%, 43%)
HSVhsv(278, 71%, 67%)
CMYKcmyk(25.9%, 70.6%, 0%, 33.3%)
CIE-LABlab(37.15, 52.61, -50.38)
CIE-LCHlch(37.15, 72.84, 316.24°)
OKLaboklab(48.14% 0.1204 -0.1425)
OKLCHoklch(48.14% 0.187 310.2)
XYZxyz(16.9991, 9.6195, 38.9837)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32AA #5EAA32
analogous
#4232AA #7E32AA #AA329A
triadic
#7E32AA #AA7E32 #32AA7E
tetradic
#7E32AA #AA4232 #5EAA32 #329AAA
square
#7E32AA #AA4232 #5EAA32 #329AAA
split-complementary
#7E32AA #9AAA32 #32AA42
monochromatic
#38164B #5B247B #7E32AA #9D4ECB #B77DD9

Accessibility & contrast

On white

7.18
#7E32AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7E32AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E32AA
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32AA#FFFFFF#000000##FFFFFF
##7E32AA1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#1D59A7
Tritanopia (blue-blind)
#784C6A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e32aa;
/* rgb */ color: rgb(126, 50, 170);
/* oklch */ color: oklch(48.1% 0.187 310.2);
Tailwind
colors: {
  custom: {
    50: '#a770c4',
    500: '#7e32aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e32aa;
$custom-light: #a770c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32aa",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 170
  },
  "hsl": {
    "h": 278,
    "s": 54.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48143,
    "c": 0.18656,
    "h": 310.2
  },
  "luminance": 0.09619
}

Semantic roles & 50–950 ramp

primary
#7E32AA
secondary
#92C276
accent
#DE4A80
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E32AA

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

Preview Lab → · Contrast checker → · Palette generator →

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