#7A34B2#7A34B2

#7A34B2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.191 H 305.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7A34B2
RGBrgb(122, 52, 178)
HSLhsl(273, 55%, 45%)
HSVhsv(273, 71%, 70%)
CMYKcmyk(31.5%, 70.8%, 0%, 30.2%)
CIE-LABlab(37.50, 52.71, -54.61)
CIE-LCHlch(37.50, 75.90, 313.99°)
OKLaboklab(48.45% 0.1117 -0.1551)
OKLCHoklch(48.45% 0.191 305.8)
XYZxyz(17.2881, 9.8081, 43.0932)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34B2 #6CB234
analogous
#3B34B2 #7A34B2 #B234AB
triadic
#7A34B2 #B27A34 #34B27A
tetradic
#7A34B2 #B23B34 #6CB234 #34ABB2
square
#7A34B2 #B23B34 #6CB234 #34ABB2
split-complementary
#7A34B2 #ABB234 #34B23B
monochromatic
#391853 #5A2683 #7A34B2 #9856CE #B585DB

Accessibility & contrast

On white

7.09
#7A34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7A34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A34B2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34B2#FFFFFF#000000##FFFFFF
##7A34B21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#70516F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a34b2;
/* rgb */ color: rgb(122, 52, 178);
/* oklch */ color: oklch(48.5% 0.191 305.8);
Tailwind
colors: {
  custom: {
    50: '#a571ca',
    500: '#7a34b2',
    950: '#000000',
  },
}
SCSS
$custom: #7a34b2;
$custom-light: #a571ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34b2",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 273.333,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48453,
    "c": 0.19116,
    "h": 305.8
  },
  "luminance": 0.09808
}

Semantic roles & 50–950 ramp

primary
#7A34B2
secondary
#9DC57D
accent
#DE4A8C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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