#7E34C2#7E34C2

#7E34C2 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.2% C 0.209 H 303.3°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7E34C2
RGBrgb(126, 52, 194)
HSLhsl(271, 58%, 48%)
HSVhsv(271, 73%, 76%)
CMYKcmyk(35.1%, 73.2%, 0%, 23.9%)
CIE-LABlab(39.22, 57.22, -61.21)
CIE-LCHlch(39.22, 83.79, 313.07°)
OKLaboklab(50.17% 0.1145 -0.1743)
OKLCHoklch(50.17% 0.209 303.3)
XYZxyz(19.5675, 10.7867, 52.0796)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34C2 #78C234
analogous
#3734C2 #7E34C2 #C234BF
triadic
#7E34C2 #C27E34 #34C27E
tetradic
#7E34C2 #C23734 #78C234 #34BFC2
square
#7E34C2 #C23734 #78C234 #34BFC2
split-complementary
#7E34C2 #BFC234 #34C237
monochromatic
#3F1A61 #5F2792 #7E34C2 #9C5FD4 #BA8FE1

Accessibility & contrast

On white

6.65
#7E34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7E34C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34C2
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34C2#FFFFFF#000000##FFFFFF
##7E34C21.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#705778
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e34c2;
/* rgb */ color: rgb(126, 52, 194);
/* oklch */ color: oklch(50.2% 0.209 303.3);
Tailwind
colors: {
  custom: {
    50: '#a972d5',
    500: '#7e34c2',
    950: '#000000',
  },
}
SCSS
$custom: #7e34c2;
$custom-light: #a972d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34c2",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 271.268,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50165,
    "c": 0.20857,
    "h": 303.3
  },
  "luminance": 0.10787
}

Semantic roles & 50–950 ramp

primary
#7E34C2
secondary
#A7CC86
accent
#E14791
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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