#7E32B9#7E32B9

#7E32B9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.202 H 305.8°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7E32B9
RGBrgb(126, 50, 185)
HSLhsl(274, 57%, 46%)
HSVhsv(274, 73%, 73%)
CMYKcmyk(31.9%, 73%, 0%, 27.5%)
CIE-LABlab(38.23, 56.00, -57.52)
CIE-LCHlch(38.23, 80.28, 314.23°)
OKLaboklab(49.26% 0.1181 -0.1635)
OKLCHoklch(49.26% 0.202 305.8)
XYZxyz(18.4998, 10.2198, 46.8875)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32B9 #6DB932
analogous
#3A32B9 #7E32B9 #B932B0
triadic
#7E32B9 #B97E32 #32B97E
tetradic
#7E32B9 #B93A32 #6DB932 #32B0B9
square
#7E32B9 #B93A32 #6DB932 #32B0B9
split-complementary
#7E32B9 #B0B932 #32B93A
monochromatic
#3C1859 #5D2589 #7E32B9 #9C57D2 #B887DF

Accessibility & contrast

On white

6.90
#7E32B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7E32B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E32B9
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32B9#FFFFFF#000000##FFFFFF
##7E32B91.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#735273
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e32b9;
/* rgb */ color: rgb(126, 50, 185);
/* oklch */ color: oklch(49.3% 0.202 305.8);
Tailwind
colors: {
  custom: {
    50: '#a871cf',
    500: '#7e32b9',
    950: '#000000',
  },
}
SCSS
$custom: #7e32b9;
$custom-light: #a871cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32b9",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 185
  },
  "hsl": {
    "h": 273.778,
    "s": 57.447,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49255,
    "c": 0.2017,
    "h": 305.8
  },
  "luminance": 0.1022
}

Semantic roles & 50–950 ramp

primary
#7E32B9
secondary
#9FC87F
accent
#E1478A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E32B9

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

Preview Lab → · Contrast checker → · Palette generator →

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