#7A34BB#7A34BB

#7A34BB is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.201 H 303.3°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7A34BB
RGBrgb(122, 52, 187)
HSLhsl(271, 56%, 47%)
HSVhsv(271, 72%, 73%)
CMYKcmyk(34.8%, 72.2%, 0%, 26.7%)
CIE-LABlab(38.17, 54.83, -58.83)
CIE-LCHlch(38.17, 80.42, 312.98°)
OKLaboklab(49.14% 0.1102 -0.1675)
OKLCHoklch(49.14% 0.201 303.3)
XYZxyz(18.2216, 10.1814, 48.0093)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34BB #75BB34
analogous
#3734BB #7A34BB #BB34B9
triadic
#7A34BB #BB7A34 #34BB7A
tetradic
#7A34BB #BB3734 #75BB34 #34B9BB
square
#7A34BB #BB3734 #75BB34 #34B9BB
split-complementary
#7A34BB #B9BB34 #34BB37
monochromatic
#3C195B #5B278B #7A34BB #985BD1 #B68BDF

Accessibility & contrast

On white

6.92
#7A34BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7A34BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A34BB
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34BB#FFFFFF#000000##FFFFFF
##7A34BB1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#6D5574
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a34bb;
/* rgb */ color: rgb(122, 52, 187);
/* oklch */ color: oklch(49.1% 0.201 303.3);
Tailwind
colors: {
  custom: {
    50: '#a672d0',
    500: '#7a34bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a34bb;
$custom-light: #a672d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34bb",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 271.111,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4914,
    "c": 0.20053,
    "h": 303.3
  },
  "luminance": 0.10181
}

Semantic roles & 50–950 ramp

primary
#7A34BB
secondary
#A4C982
accent
#E04891
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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