#7A34BA#7A34BA

#7A34BA is a mid, vivid violet. Relative luminance 0.101; OKLCH L 49.1% C 0.200 H 303.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7A34BA
RGBrgb(122, 52, 186)
HSLhsl(271, 56%, 47%)
HSVhsv(271, 72%, 73%)
CMYKcmyk(34.4%, 72%, 0%, 27.1%)
CIE-LABlab(38.09, 54.59, -58.37)
CIE-LCHlch(38.09, 79.92, 313.09°)
OKLaboklab(49.06% 0.1104 -0.1662)
OKLCHoklch(49.06% 0.2 303.6)
XYZxyz(18.1149, 10.1388, 47.4475)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34BA #74BA34
analogous
#3734BA #7A34BA #BA34B7
triadic
#7A34BA #BA7A34 #34BA7A
tetradic
#7A34BA #BA3734 #74BA34 #34B7BA
square
#7A34BA #BA3734 #74BA34 #34B7BA
split-complementary
#7A34BA #B7BA34 #34BA37
monochromatic
#3B195A #5B278A #7A34BA #985AD1 #B68ADE

Accessibility & contrast

On white

6.94
#7A34BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7A34BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A34BA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34BA#FFFFFF#000000##FFFFFF
##7A34BA1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#6D5474
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a34ba;
/* rgb */ color: rgb(122, 52, 186);
/* oklch */ color: oklch(49.1% 0.200 303.6);
Tailwind
colors: {
  custom: {
    50: '#a672d0',
    500: '#7a34ba',
    950: '#000000',
  },
}
SCSS
$custom: #7a34ba;
$custom-light: #a672d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34ba",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 271.343,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49063,
    "c": 0.1995,
    "h": 303.6
  },
  "luminance": 0.10139
}

Semantic roles & 50–950 ramp

primary
#7A34BA
secondary
#A3C881
accent
#E04891
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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