#7E32A2#7E32A2

#7E32A2 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.178 H 312.8°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7E32A2
RGBrgb(126, 50, 162)
HSLhsl(281, 53%, 42%)
HSVhsv(281, 69%, 64%)
CMYKcmyk(22.2%, 69.1%, 0%, 36.5%)
CIE-LABlab(36.60, 50.85, -46.46)
CIE-LCHlch(36.60, 68.88, 317.58°)
OKLaboklab(47.58% 0.1212 -0.131)
OKLCHoklch(47.58% 0.179 312.8)
XYZxyz(16.2652, 9.3259, 35.1187)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32A2 #56A232
analogous
#4632A2 #7E32A2 #A2328E
triadic
#7E32A2 #A27E32 #32A27E
tetradic
#7E32A2 #A24632 #56A232 #328EA2
square
#7E32A2 #A24632 #56A232 #328EA2
split-complementary
#7E32A2 #8EA232 #32A246
monochromatic
#351544 #5A2473 #7E32A2 #9F4AC7 #B879D6

Accessibility & contrast

On white

7.33
#7E32A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7E32A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E32A2
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32A2#FFFFFF#000000##FFFFFF
##7E32A21.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#29589F
Tritanopia (blue-blind)
#7A4966
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e32a2;
/* rgb */ color: rgb(126, 50, 162);
/* oklch */ color: oklch(47.6% 0.178 312.8);
Tailwind
colors: {
  custom: {
    50: '#a770be',
    500: '#7e32a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e32a2;
$custom-light: #a770be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32a2",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 162
  },
  "hsl": {
    "h": 280.714,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47579,
    "c": 0.1785,
    "h": 312.8
  },
  "luminance": 0.09325
}

Semantic roles & 50–950 ramp

primary
#7E32A2
secondary
#8ABE72
accent
#DC4C7A
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E32A2

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

Preview Lab → · Contrast checker → · Palette generator →

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