#7E32B8#7E32B8

#7E32B8 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.201 H 306.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7E32B8
RGBrgb(126, 50, 184)
HSLhsl(274, 57%, 46%)
HSVhsv(274, 73%, 72%)
CMYKcmyk(31.5%, 72.8%, 0%, 27.8%)
CIE-LABlab(38.16, 55.77, -57.05)
CIE-LCHlch(38.16, 79.78, 314.35°)
OKLaboklab(49.18% 0.1183 -0.1621)
OKLCHoklch(49.18% 0.201 306.1)
XYZxyz(18.3946, 10.1777, 46.3335)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32B8 #6CB832
analogous
#3B32B8 #7E32B8 #B832AF
triadic
#7E32B8 #B87E32 #32B87E
tetradic
#7E32B8 #B83B32 #6CB832 #32AFB8
square
#7E32B8 #B83B32 #6CB832 #32AFB8
split-complementary
#7E32B8 #AFB832 #32B83B
monochromatic
#3C1858 #5D2588 #7E32B8 #9C56D1 #B886DE

Accessibility & contrast

On white

6.92
#7E32B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E32B8
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32B8#FFFFFF#000000##FFFFFF
##7E32B81.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#745272
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e32b8;
/* rgb */ color: rgb(126, 50, 184);
/* oklch */ color: oklch(49.2% 0.201 306.1);
Tailwind
colors: {
  custom: {
    50: '#a871ce',
    500: '#7e32b8',
    950: '#000000',
  },
}
SCSS
$custom: #7e32b8;
$custom-light: #a871ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32b8",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 184
  },
  "hsl": {
    "h": 274.03,
    "s": 57.265,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49178,
    "c": 0.20069,
    "h": 306.1
  },
  "luminance": 0.10178
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E32B8

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

Preview Lab → · Contrast checker → · Palette generator →

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