#7E32BA#7E32BA

#7E32BA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.203 H 305.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7E32BA
RGBrgb(126, 50, 186)
HSLhsl(274, 58%, 46%)
HSVhsv(274, 73%, 73%)
CMYKcmyk(32.3%, 73.1%, 0%, 27.1%)
CIE-LABlab(38.31, 56.23, -57.99)
CIE-LCHlch(38.31, 80.77, 314.12°)
OKLaboklab(49.33% 0.1179 -0.1649)
OKLCHoklch(49.33% 0.203 305.6)
XYZxyz(18.6057, 10.2621, 47.4455)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32BA #6EBA32
analogous
#3A32BA #7E32BA #BA32B2
triadic
#7E32BA #BA7E32 #32BA7E
tetradic
#7E32BA #BA3A32 #6EBA32 #32B2BA
square
#7E32BA #BA3A32 #6EBA32 #32B2BA
split-complementary
#7E32BA #B2BA32 #32BA3A
monochromatic
#3D185A #5D258A #7E32BA #9C57D2 #B888DF

Accessibility & contrast

On white

6.88
#7E32BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7E32BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E32BA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32BA#FFFFFF#000000##FFFFFF
##7E32BA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#735373
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e32ba;
/* rgb */ color: rgb(126, 50, 186);
/* oklch */ color: oklch(49.3% 0.203 305.6);
Tailwind
colors: {
  custom: {
    50: '#a971d0',
    500: '#7e32ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e32ba;
$custom-light: #a971d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32ba",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 186
  },
  "hsl": {
    "h": 273.529,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49331,
    "c": 0.2027,
    "h": 305.6
  },
  "luminance": 0.10262
}

Semantic roles & 50–950 ramp

primary
#7E32BA
secondary
#A0C97F
accent
#E1478B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E32BA

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

Preview Lab → · Contrast checker → · Palette generator →

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