#7E34AA#7E34AA

#7E34AA is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.4% C 0.184 H 310.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#7E34AA
RGBrgb(126, 52, 170)
HSLhsl(278, 53%, 44%)
HSVhsv(278, 69%, 67%)
CMYKcmyk(25.9%, 69.4%, 0%, 33.3%)
CIE-LABlab(37.47, 51.71, -49.86)
CIE-LCHlch(37.47, 71.84, 316.04°)
OKLaboklab(48.37% 0.1182 -0.141)
OKLCHoklch(48.37% 0.184 310)
XYZxyz(17.0865, 9.7942, 39.0128)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34AA #60AA34
analogous
#4334AA #7E34AA #AA349B
triadic
#7E34AA #AA7E34 #34AA7E
tetradic
#7E34AA #AA4334 #60AA34 #349BAA
square
#7E34AA #AA4334 #60AA34 #349BAA
split-complementary
#7E34AA #9BAA34 #34AA43
monochromatic
#39174C #5B267B #7E34AA #9D51CA #B780D8

Accessibility & contrast

On white

7.10
#7E34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7E34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E34AA
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34AA#FFFFFF#000000##FFFFFF
##7E34AA1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#2059A7
Tritanopia (blue-blind)
#784D6B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e34aa;
/* rgb */ color: rgb(126, 52, 170);
/* oklch */ color: oklch(48.4% 0.184 310.0);
Tailwind
colors: {
  custom: {
    50: '#a771c4',
    500: '#7e34aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e34aa;
$custom-light: #a771c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34aa",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 277.627,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48371,
    "c": 0.18401,
    "h": 310
  },
  "luminance": 0.09794
}

Semantic roles & 50–950 ramp

primary
#7E34AA
secondary
#94C178
accent
#DD4B81
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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