#7A34A2#7A34A2

#7A34A2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.3% C 0.174 H 310.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7A34A2
RGBrgb(122, 52, 162)
HSLhsl(278, 51%, 42%)
HSVhsv(278, 68%, 64%)
CMYKcmyk(24.7%, 67.9%, 0%, 36.5%)
CIE-LABlab(36.37, 49.04, -46.87)
CIE-LCHlch(36.37, 67.83, 316.30°)
OKLaboklab(47.29% 0.1137 -0.1323)
OKLCHoklch(47.29% 0.174 310.7)
XYZxyz(15.7744, 9.2025, 35.1207)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34A2 #5CA234
analogous
#4334A2 #7A34A2 #A23493
triadic
#7A34A2 #A27A34 #34A27A
tetradic
#7A34A2 #A24334 #5CA234 #3493A2
square
#7A34A2 #A24334 #5CA234 #3493A2
split-complementary
#7A34A2 #93A234 #34A243
monochromatic
#341645 #572574 #7A34A2 #9A4DC6 #B47CD5

Accessibility & contrast

On white

7.39
#7A34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7A34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A34A2
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34A2#FFFFFF#000000##FFFFFF
##7A34A21.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#2557A0
Tritanopia (blue-blind)
#754B67
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a34a2;
/* rgb */ color: rgb(122, 52, 162);
/* oklch */ color: oklch(47.3% 0.174 310.7);
Tailwind
colors: {
  custom: {
    50: '#a471be',
    500: '#7a34a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a34a2;
$custom-light: #a471be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34a2",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 278.182,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47294,
    "c": 0.17446,
    "h": 310.7
  },
  "luminance": 0.09202
}

Semantic roles & 50–950 ramp

primary
#7A34A2
secondary
#8FBE74
accent
#DB4D81
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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