#7E34C5#7E34C5

#7E34C5 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.4% C 0.212 H 302.5°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7E34C5
RGBrgb(126, 52, 197)
HSLhsl(271, 58%, 49%)
HSVhsv(271, 74%, 77%)
CMYKcmyk(36%, 73.6%, 0%, 22.7%)
CIE-LABlab(39.45, 57.93, -62.58)
CIE-LCHlch(39.45, 85.28, 312.79°)
OKLaboklab(50.4% 0.1139 -0.1784)
OKLCHoklch(50.4% 0.212 302.5)
XYZxyz(19.9078, 10.9228, 53.8720)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34C5 #7BC534
analogous
#3634C5 #7E34C5 #C534C4
triadic
#7E34C5 #C57E34 #34C57E
tetradic
#7E34C5 #C53634 #7BC534 #34C4C5
square
#7E34C5 #C53634 #7BC534 #34C4C5
split-complementary
#7E34C5 #C4C534 #34C536
monochromatic
#401A64 #5F2795 #7E34C5 #9C61D5 #BB91E2

Accessibility & contrast

On white

6.59
#7E34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7E34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34C5
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34C5#FFFFFF#000000##FFFFFF
##7E34C51.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#6F587A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e34c5;
/* rgb */ color: rgb(126, 52, 197);
/* oklch */ color: oklch(50.4% 0.212 302.5);
Tailwind
colors: {
  custom: {
    50: '#a973d8',
    500: '#7e34c5',
    950: '#000000',
  },
}
SCSS
$custom: #7e34c5;
$custom-light: #a973d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34c5",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 270.621,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50401,
    "c": 0.21164,
    "h": 302.5
  },
  "luminance": 0.10923
}

Semantic roles & 50–950 ramp

primary
#7E34C5
secondary
#AACD88
accent
#E14692
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7E34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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