#7A34B8#7A34B8

#7A34B8 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.9% C 0.197 H 304.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7A34B8
RGBrgb(122, 52, 184)
HSLhsl(272, 56%, 46%)
HSVhsv(272, 72%, 72%)
CMYKcmyk(33.7%, 71.7%, 0%, 27.8%)
CIE-LABlab(37.94, 54.12, -57.44)
CIE-LCHlch(37.94, 78.92, 313.30°)
OKLaboklab(48.91% 0.1108 -0.1634)
OKLCHoklch(48.91% 0.197 304.1)
XYZxyz(17.9038, 10.0543, 46.3356)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34B8 #72B834
analogous
#3834B8 #7A34B8 #B834B4
triadic
#7A34B8 #B87A34 #34B87A
tetradic
#7A34B8 #B83834 #72B834 #34B4B8
square
#7A34B8 #B83834 #72B834 #34B4B8
split-complementary
#7A34B8 #B4B834 #34B838
monochromatic
#3B1959 #5A2788 #7A34B8 #9859D0 #B689DE

Accessibility & contrast

On white

6.97
#7A34B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7A34B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A34B8
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34B8#FFFFFF#000000##FFFFFF
##7A34B81.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#6E5373
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a34b8;
/* rgb */ color: rgb(122, 52, 184);
/* oklch */ color: oklch(48.9% 0.197 304.1);
Tailwind
colors: {
  custom: {
    50: '#a672ce',
    500: '#7a34b8',
    950: '#000000',
  },
}
SCSS
$custom: #7a34b8;
$custom-light: #a672ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34b8",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 271.818,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48909,
    "c": 0.19742,
    "h": 304.1
  },
  "luminance": 0.10054
}

Semantic roles & 50–950 ramp

primary
#7A34B8
secondary
#A2C880
accent
#DF498F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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