#7A34B6#7A34B6

#7A34B6 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.8% C 0.195 H 304.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7A34B6
RGBrgb(122, 52, 182)
HSLhsl(272, 56%, 46%)
HSVhsv(272, 71%, 71%)
CMYKcmyk(33%, 71.4%, 0%, 28.6%)
CIE-LABlab(37.79, 53.65, -56.50)
CIE-LCHlch(37.79, 77.91, 313.52°)
OKLaboklab(48.76% 0.1111 -0.1606)
OKLCHoklch(48.76% 0.195 304.7)
XYZxyz(17.6956, 9.9710, 45.2393)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34B6 #70B634
analogous
#3934B6 #7A34B6 #B634B1
triadic
#7A34B6 #B67A34 #34B67A
tetradic
#7A34B6 #B63934 #70B634 #34B1B6
square
#7A34B6 #B63934 #70B634 #34B1B6
split-complementary
#7A34B6 #B1B634 #34B639
monochromatic
#3A1957 #5A2686 #7A34B6 #9858CF #B588DD

Accessibility & contrast

On white

7.01
#7A34B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7A34B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A34B6
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34B6#FFFFFF#000000##FFFFFF
##7A34B61.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#6F5372
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a34b6;
/* rgb */ color: rgb(122, 52, 182);
/* oklch */ color: oklch(48.8% 0.195 304.7);
Tailwind
colors: {
  custom: {
    50: '#a571cd',
    500: '#7a34b6',
    950: '#000000',
  },
}
SCSS
$custom: #7a34b6;
$custom-light: #a571cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34b6",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 272.308,
    "s": 55.556,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48756,
    "c": 0.19533,
    "h": 304.7
  },
  "luminance": 0.09971
}

Semantic roles & 50–950 ramp

primary
#7A34B6
secondary
#A0C77F
accent
#DF498E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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