#7E34BA#7E34BA

#7E34BA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.5% C 0.200 H 305.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7E34BA
RGBrgb(126, 52, 186)
HSLhsl(273, 56%, 47%)
HSVhsv(273, 72%, 73%)
CMYKcmyk(32.3%, 72%, 0%, 27.1%)
CIE-LABlab(38.62, 55.36, -57.49)
CIE-LCHlch(38.62, 79.81, 313.92°)
OKLaboklab(49.55% 0.116 -0.1634)
OKLCHoklch(49.55% 0.2 305.4)
XYZxyz(18.6931, 10.4369, 47.4746)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34BA #70BA34
analogous
#3B34BA #7E34BA #BA34B3
triadic
#7E34BA #BA7E34 #34BA7E
tetradic
#7E34BA #BA3B34 #70BA34 #34B3BA
square
#7E34BA #BA3B34 #70BA34 #34B3BA
split-complementary
#7E34BA #B3BA34 #34BA3B
monochromatic
#3D195A #5E278A #7E34BA #9C5AD1 #B98ADE

Accessibility & contrast

On white

6.80
#7E34BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7E34BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34BA
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34BA#FFFFFF#000000##FFFFFF
##7E34BA1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#735474
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e34ba;
/* rgb */ color: rgb(126, 52, 186);
/* oklch */ color: oklch(49.5% 0.200 305.4);
Tailwind
colors: {
  custom: {
    50: '#a872d0',
    500: '#7e34ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e34ba;
$custom-light: #a872d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34ba",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 273.134,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49548,
    "c": 0.20039,
    "h": 305.4
  },
  "luminance": 0.10437
}

Semantic roles & 50–950 ramp

primary
#7E34BA
secondary
#A1C881
accent
#E0488C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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