#7E32A5#7E32A5

#7E32A5 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.8% C 0.182 H 311.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7E32A5
RGBrgb(126, 50, 165)
HSLhsl(280, 53%, 42%)
HSVhsv(280, 70%, 65%)
CMYKcmyk(23.6%, 69.7%, 0%, 35.3%)
CIE-LABlab(36.81, 51.51, -47.94)
CIE-LCHlch(36.81, 70.36, 317.05°)
OKLaboklab(47.79% 0.1209 -0.1354)
OKLCHoklch(47.79% 0.182 311.8)
XYZxyz(16.5351, 9.4339, 36.5399)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32A5 #59A532
analogous
#4532A5 #7E32A5 #A53293
triadic
#7E32A5 #A57E32 #32A57E
tetradic
#7E32A5 #A54532 #59A532 #3293A5
square
#7E32A5 #A54532 #59A532 #3293A5
split-complementary
#7E32A5 #93A532 #32A545
monochromatic
#361647 #5A2476 #7E32A5 #9E4CC9 #B87BD7

Accessibility & contrast

On white

7.27
#7E32A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7E32A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E32A5
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32A5#FFFFFF#000000##FFFFFF
##7E32A51.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#2558A2
Tritanopia (blue-blind)
#794A68
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e32a5;
/* rgb */ color: rgb(126, 50, 165);
/* oklch */ color: oklch(47.8% 0.182 311.8);
Tailwind
colors: {
  custom: {
    50: '#a770c0',
    500: '#7e32a5',
    950: '#000000',
  },
}
SCSS
$custom: #7e32a5;
$custom-light: #a770c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32a5",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 165
  },
  "hsl": {
    "h": 279.652,
    "s": 53.488,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47788,
    "c": 0.18152,
    "h": 311.8
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#7E32A5
secondary
#8DBF73
accent
#DD4B7C
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E32A5

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

Preview Lab → · Contrast checker → · Palette generator →

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