#7E32B2#7E32B2

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

Color values

HEX#7E32B2
RGBrgb(126, 50, 178)
HSLhsl(276, 56%, 45%)
HSVhsv(276, 72%, 70%)
CMYKcmyk(29.2%, 71.9%, 0%, 30.2%)
CIE-LABlab(37.72, 54.40, -54.22)
CIE-LCHlch(37.72, 76.81, 315.10°)
OKLaboklab(48.73% 0.1193 -0.1538)
OKLCHoklch(48.73% 0.195 307.8)
XYZxyz(17.7790, 9.9314, 43.0912)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32B2 #66B232
analogous
#3E32B2 #7E32B2 #B232A6
triadic
#7E32B2 #B27E32 #32B27E
tetradic
#7E32B2 #B23E32 #66B232 #32A6B2
square
#7E32B2 #B23E32 #66B232 #32A6B2
split-complementary
#7E32B2 #A6B232 #32B23E
monochromatic
#3A1752 #5C2582 #7E32B2 #9C53CF #B882DC

Accessibility & contrast

On white

7.03
#7E32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7E32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E32B2
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32B2#FFFFFF#000000##FFFFFF
##7E32B21.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0959AF
Tritanopia (blue-blind)
#764F6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e32b2;
/* rgb */ color: rgb(126, 50, 178);
/* oklch */ color: oklch(48.7% 0.195 307.8);
Tailwind
colors: {
  custom: {
    50: '#a871ca',
    500: '#7e32b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e32b2;
$custom-light: #a871ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32b2",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 275.625,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48727,
    "c": 0.19463,
    "h": 307.8
  },
  "luminance": 0.09931
}

Semantic roles & 50–950 ramp

primary
#7E32B2
secondary
#99C57B
accent
#DF4886
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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