#7E34AE#7E34AE

#7E34AE is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.7% C 0.188 H 308.8°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7E34AE
RGBrgb(126, 52, 174)
HSLhsl(276, 54%, 44%)
HSVhsv(276, 70%, 68%)
CMYKcmyk(27.6%, 70.1%, 0%, 31.8%)
CIE-LABlab(37.75, 52.61, -51.80)
CIE-LCHlch(37.75, 73.83, 315.45°)
OKLaboklab(48.66% 0.1177 -0.1467)
OKLCHoklch(48.66% 0.188 308.8)
XYZxyz(17.4706, 9.9479, 41.0360)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34AE #64AE34
analogous
#4134AE #7E34AE #AE34A1
triadic
#7E34AE #AE7E34 #34AE7E
tetradic
#7E34AE #AE4134 #64AE34 #34A1AE
square
#7E34AE #AE4134 #64AE34 #34A1AE
split-complementary
#7E34AE #A1AE34 #34AE41
monochromatic
#3A1850 #5C267F #7E34AE #9C53CC #B783DA

Accessibility & contrast

On white

7.02
#7E34AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7E34AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E34AE
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34AE#FFFFFF#000000##FFFFFF
##7E34AE1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#195AAB
Tritanopia (blue-blind)
#774F6D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e34ae;
/* rgb */ color: rgb(126, 52, 174);
/* oklch */ color: oklch(48.7% 0.188 308.8);
Tailwind
colors: {
  custom: {
    50: '#a872c7',
    500: '#7e34ae',
    950: '#000000',
  },
}
SCSS
$custom: #7e34ae;
$custom-light: #a872c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34ae",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 174
  },
  "hsl": {
    "h": 276.393,
    "s": 53.982,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48658,
    "c": 0.18811,
    "h": 308.8
  },
  "luminance": 0.09948
}

Semantic roles & 50–950 ramp

primary
#7E34AE
secondary
#97C37B
accent
#DD4A84
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E34AE

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

Preview Lab → · Contrast checker → · Palette generator →

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