#7A34BC#7A34BC

#7A34BC is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.202 H 303.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7A34BC
RGBrgb(122, 52, 188)
HSLhsl(271, 57%, 47%)
HSVhsv(271, 72%, 74%)
CMYKcmyk(35.1%, 72.3%, 0%, 26.3%)
CIE-LABlab(38.24, 55.07, -59.30)
CIE-LCHlch(38.24, 80.93, 312.88°)
OKLaboklab(49.22% 0.1101 -0.1689)
OKLCHoklch(49.22% 0.202 303.1)
XYZxyz(18.3290, 10.2244, 48.5751)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34BC #76BC34
analogous
#3634BC #7A34BC #BC34BA
triadic
#7A34BC #BC7A34 #34BC7A
tetradic
#7A34BC #BC3634 #76BC34 #34BABC
square
#7A34BC #BC3634 #76BC34 #34BABC
split-complementary
#7A34BC #BABC34 #34BC36
monochromatic
#3C195C #5B278C #7A34BC #985BD2 #B68BDF

Accessibility & contrast

On white

6.90
#7A34BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A34BC
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34BC#FFFFFF#000000##FFFFFF
##7A34BC1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#6D5575
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a34bc;
/* rgb */ color: rgb(122, 52, 188);
/* oklch */ color: oklch(49.2% 0.202 303.1);
Tailwind
colors: {
  custom: {
    50: '#a672d1',
    500: '#7a34bc',
    950: '#000000',
  },
}
SCSS
$custom: #7a34bc;
$custom-light: #a672d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34bc",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 270.882,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49218,
    "c": 0.20158,
    "h": 303.1
  },
  "luminance": 0.10224
}

Semantic roles & 50–950 ramp

primary
#7A34BC
secondary
#A5C983
accent
#E04892
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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