#7E32B3#7E32B3

#7E32B3 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.8% C 0.196 H 307.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7E32B3
RGBrgb(126, 50, 179)
HSLhsl(275, 56%, 45%)
HSVhsv(275, 72%, 70%)
CMYKcmyk(29.6%, 72.1%, 0%, 29.8%)
CIE-LABlab(37.79, 54.63, -54.69)
CIE-LCHlch(37.79, 77.30, 314.97°)
OKLaboklab(48.8% 0.1191 -0.1552)
OKLCHoklch(48.8% 0.196 307.5)
XYZxyz(17.8798, 9.9717, 43.6219)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E32B3 #67B332
analogous
#3E32B3 #7E32B3 #B332A7
triadic
#7E32B3 #B37E32 #32B37E
tetradic
#7E32B3 #B33E32 #67B332 #32A7B3
square
#7E32B3 #B33E32 #67B332 #32A7B3
split-complementary
#7E32B3 #A7B332 #32B33E
monochromatic
#3B1753 #5C2583 #7E32B3 #9C53CF #B883DC

Accessibility & contrast

On white

7.01
#7E32B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E32B3
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E32B3#FFFFFF#000000##FFFFFF
##7E32B31.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#045AB0
Tritanopia (blue-blind)
#75506F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e32b3;
/* rgb */ color: rgb(126, 50, 179);
/* oklch */ color: oklch(48.8% 0.196 307.5);
Tailwind
colors: {
  custom: {
    50: '#a871cb',
    500: '#7e32b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e32b3;
$custom-light: #a871cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e32b3",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 179
  },
  "hsl": {
    "h": 275.349,
    "s": 56.332,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48802,
    "c": 0.19563,
    "h": 307.5
  },
  "luminance": 0.09971
}

Semantic roles & 50–950 ramp

primary
#7E32B3
secondary
#9AC67B
accent
#E04886
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E32B3

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

Preview Lab → · Contrast checker → · Palette generator →

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