#7E34A5#7E34A5

#7E34A5 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.0% C 0.179 H 311.6°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7E34A5
RGBrgb(126, 52, 165)
HSLhsl(279, 52%, 43%)
HSVhsv(279, 68%, 65%)
CMYKcmyk(23.6%, 68.5%, 0%, 35.3%)
CIE-LABlab(37.13, 50.60, -47.42)
CIE-LCHlch(37.13, 69.35, 316.86°)
OKLaboklab(48.02% 0.1187 -0.1338)
OKLCHoklch(48.02% 0.179 311.6)
XYZxyz(16.6225, 9.6086, 36.5690)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34A5 #5BA534
analogous
#4534A5 #7E34A5 #A53494
triadic
#7E34A5 #A57E34 #34A57E
tetradic
#7E34A5 #A54534 #5BA534 #3494A5
square
#7E34A5 #A54534 #5BA534 #3494A5
split-complementary
#7E34A5 #94A534 #34A545
monochromatic
#371748 #5A2576 #7E34A5 #9E4FC7 #B77DD6

Accessibility & contrast

On white

7.19
#7E34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7E34A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E34A5
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34A5#FFFFFF#000000##FFFFFF
##7E34A51.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#2759A2
Tritanopia (blue-blind)
#794B68
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e34a5;
/* rgb */ color: rgb(126, 52, 165);
/* oklch */ color: oklch(48.0% 0.179 311.6);
Tailwind
colors: {
  custom: {
    50: '#a771c0',
    500: '#7e34a5',
    950: '#000000',
  },
}
SCSS
$custom: #7e34a5;
$custom-light: #a771c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34a5",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 279.292,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4802,
    "c": 0.1789,
    "h": 311.6
  },
  "luminance": 0.09608
}

Semantic roles & 50–950 ramp

primary
#7E34A5
secondary
#8FBF76
accent
#DC4C7E
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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