#7A34C2#7A34C2

#7A34C2 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.208 H 301.6°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7A34C2
RGBrgb(122, 52, 194)
HSLhsl(270, 58%, 48%)
HSVhsv(270, 73%, 76%)
CMYKcmyk(37.1%, 73.2%, 0%, 23.9%)
CIE-LABlab(38.71, 56.50, -62.06)
CIE-LCHlch(38.71, 83.93, 312.31°)
OKLaboklab(49.69% 0.1089 -0.177)
OKLCHoklch(49.69% 0.208 301.6)
XYZxyz(18.9893, 10.4885, 52.0525)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34C2 #7CC234
analogous
#3435C2 #7A34C2 #C134C2
triadic
#7A34C2 #C27A34 #34C27A
tetradic
#7A34C2 #C23435 #7CC234 #34C2C1
square
#7A34C2 #C23435 #7CC234 #34C2C1
split-complementary
#7A34C2 #C2C134 #35C234
monochromatic
#3D1A61 #5C2792 #7A34C2 #995FD4 #B88FE1

Accessibility & contrast

On white

6.78
#7A34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7A34C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A34C2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34C2#FFFFFF#000000##FFFFFF
##7A34C21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#6A5778
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7a34c2;
/* rgb */ color: rgb(122, 52, 194);
/* oklch */ color: oklch(49.7% 0.208 301.6);
Tailwind
colors: {
  custom: {
    50: '#a772d5',
    500: '#7a34c2',
    950: '#000000',
  },
}
SCSS
$custom: #7a34c2;
$custom-light: #a772d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34c2",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 269.577,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49691,
    "c": 0.20782,
    "h": 301.6
  },
  "luminance": 0.10489
}

Semantic roles & 50–950 ramp

primary
#7A34C2
secondary
#A9CC86
accent
#E14795
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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