#7E32B1#7E32B1

#7E32B1 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.7% C 0.194 H 308.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7E32B1
RGBrgb(126, 50, 177)
HSLhsl(276, 56%, 45%)
HSVhsv(276, 72%, 69%)
CMYKcmyk(28.8%, 71.8%, 0%, 30.6%)
CIE-LABlab(37.65, 54.18, -53.74)
CIE-LCHlch(37.65, 76.31, 315.23°)
OKLaboklab(48.65% 0.1194 -0.1524)
OKLCHoklch(48.65% 0.194 308.1)
XYZxyz(17.6790, 9.8914, 42.5644)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32B1 #65B132
analogous
#3F32B1 #7E32B1 #B132A4
triadic
#7E32B1 #B17E32 #32B17E
tetradic
#7E32B1 #B13F32 #65B132 #32A4B1
square
#7E32B1 #B13F32 #65B132 #32A4B1
split-complementary
#7E32B1 #A4B132 #32B13F
monochromatic
#3A1752 #5C2581 #7E32B1 #9C52CE #B882DC

Accessibility & contrast

On white

7.05
#7E32B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7E32B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E32B1
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32B1#FFFFFF#000000##FFFFFF
##7E32B11.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#0D59AE
Tritanopia (blue-blind)
#764F6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e32b1;
/* rgb */ color: rgb(126, 50, 177);
/* oklch */ color: oklch(48.7% 0.194 308.1);
Tailwind
colors: {
  custom: {
    50: '#a871c9',
    500: '#7e32b1',
    950: '#000000',
  },
}
SCSS
$custom: #7e32b1;
$custom-light: #a871c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32b1",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 275.906,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48653,
    "c": 0.19362,
    "h": 308.1
  },
  "luminance": 0.09891
}

Semantic roles & 50–950 ramp

primary
#7E32B1
secondary
#98C57A
accent
#DF4985
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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