#7A34B5#7A34B5

#7A34B5 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.7% C 0.194 H 304.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7A34B5
RGBrgb(122, 52, 181)
HSLhsl(273, 55%, 46%)
HSVhsv(273, 71%, 71%)
CMYKcmyk(32.6%, 71.3%, 0%, 29%)
CIE-LABlab(37.72, 53.41, -56.03)
CIE-LCHlch(37.72, 77.41, 313.63°)
OKLaboklab(48.68% 0.1113 -0.1593)
OKLCHoklch(48.68% 0.194 304.9)
XYZxyz(17.5926, 9.9299, 44.6969)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34B5 #6FB534
analogous
#3934B5 #7A34B5 #B534AF
triadic
#7A34B5 #B57A34 #34B57A
tetradic
#7A34B5 #B53934 #6FB534 #34AFB5
square
#7A34B5 #B53934 #6FB534 #34AFB5
split-complementary
#7A34B5 #AFB534 #34B539
monochromatic
#3A1956 #5A2685 #7A34B5 #9857CF #B587DC

Accessibility & contrast

On white

7.03
#7A34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A34B5
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34B5#FFFFFF#000000##FFFFFF
##7A34B51.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#6F5271
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a34b5;
/* rgb */ color: rgb(122, 52, 181);
/* oklch */ color: oklch(48.7% 0.194 304.9);
Tailwind
colors: {
  custom: {
    50: '#a571cc',
    500: '#7a34b5',
    950: '#000000',
  },
}
SCSS
$custom: #7a34b5;
$custom-light: #a571cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34b5",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 272.558,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4868,
    "c": 0.19429,
    "h": 304.9
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#7A34B5
secondary
#9FC67F
accent
#DF498E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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