#7E34A4#7E34A4

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

Color values

HEX#7E34A4
RGBrgb(126, 52, 164)
HSLhsl(280, 52%, 42%)
HSVhsv(280, 68%, 64%)
CMYKcmyk(23.2%, 68.3%, 0%, 35.7%)
CIE-LABlab(37.06, 50.38, -46.92)
CIE-LCHlch(37.06, 68.85, 317.03°)
OKLaboklab(47.95% 0.1188 -0.1324)
OKLCHoklch(47.95% 0.178 311.9)
XYZxyz(16.5318, 9.5724, 36.0915)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34A4 #5AA434
analogous
#4634A4 #7E34A4 #A43492
triadic
#7E34A4 #A47E34 #34A47E
tetradic
#7E34A4 #A44634 #5AA434 #3492A4
square
#7E34A4 #A44634 #5AA434 #3492A4
split-complementary
#7E34A4 #92A434 #34A446
monochromatic
#371747 #5A2576 #7E34A4 #9E4EC7 #B87DD6

Accessibility & contrast

On white

7.21
#7E34A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E34A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E34A4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34A4#FFFFFF#000000##FFFFFF
##7E34A41.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#2859A1
Tritanopia (blue-blind)
#7A4B68
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e34a4;
/* rgb */ color: rgb(126, 52, 164);
/* oklch */ color: oklch(48.0% 0.178 311.9);
Tailwind
colors: {
  custom: {
    50: '#a771c0',
    500: '#7e34a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e34a4;
$custom-light: #a771c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34a4",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 279.643,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47951,
    "c": 0.17788,
    "h": 311.9
  },
  "luminance": 0.09572
}

Semantic roles & 50–950 ramp

primary
#7E34A4
secondary
#8EBF75
accent
#DB4C7D
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E34A4

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

Preview Lab → · Contrast checker → · Palette generator →

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