#7E34C4#7E34C4

#7E34C4 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.3% C 0.211 H 302.8°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#7E34C4
RGBrgb(126, 52, 196)
HSLhsl(271, 58%, 49%)
HSVhsv(271, 73%, 77%)
CMYKcmyk(35.7%, 73.5%, 0%, 23.1%)
CIE-LABlab(39.37, 57.69, -62.12)
CIE-LCHlch(39.37, 84.78, 312.88°)
OKLaboklab(50.32% 0.1141 -0.1771)
OKLCHoklch(50.32% 0.211 302.8)
XYZxyz(19.7936, 10.8771, 53.2705)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34C4 #7AC434
analogous
#3634C4 #7E34C4 #C434C2
triadic
#7E34C4 #C47E34 #34C47E
tetradic
#7E34C4 #C43634 #7AC434 #34C2C4
square
#7E34C4 #C43634 #7AC434 #34C2C4
split-complementary
#7E34C4 #C2C434 #34C436
monochromatic
#401A63 #5F2794 #7E34C4 #9C60D5 #BA91E2

Accessibility & contrast

On white

6.61
#7E34C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E34C4
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34C4#FFFFFF#000000##FFFFFF
##7E34C41.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#705879
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e34c4;
/* rgb */ color: rgb(126, 52, 196);
/* oklch */ color: oklch(50.3% 0.211 302.8);
Tailwind
colors: {
  custom: {
    50: '#a972d7',
    500: '#7e34c4',
    950: '#000000',
  },
}
SCSS
$custom: #7e34c4;
$custom-light: #a972d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34c4",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 196
  },
  "hsl": {
    "h": 270.833,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50322,
    "c": 0.21061,
    "h": 302.8
  },
  "luminance": 0.10877
}

Semantic roles & 50–950 ramp

primary
#7E34C4
secondary
#A9CC87
accent
#E14792
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E34C4

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

Preview Lab → · Contrast checker → · Palette generator →

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