#7B34C2#7B34C2

#7B34C2 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.8% C 0.208 H 302.0°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7B34C2
RGBrgb(123, 52, 194)
HSLhsl(270, 58%, 48%)
HSVhsv(270, 73%, 76%)
CMYKcmyk(36.6%, 73.2%, 0%, 23.9%)
CIE-LABlab(38.83, 56.68, -61.85)
CIE-LCHlch(38.83, 83.89, 312.50°)
OKLaboklab(49.81% 0.1103 -0.1764)
OKLCHoklch(49.81% 0.208 302)
XYZxyz(19.1316, 10.5619, 52.0592)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34C2 #7BC234
analogous
#3434C2 #7B34C2 #C234C2
triadic
#7B34C2 #C27B34 #34C27B
tetradic
#7B34C2 #C23434 #7BC234 #34C2C2
square
#7B34C2 #C23434 #7BC234 #34C2C2
split-complementary
#7B34C2 #C2C234 #34C234
monochromatic
#3E1A61 #5C2792 #7B34C2 #9A5FD4 #B88FE1

Accessibility & contrast

On white

6.75
#7B34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7B34C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B34C2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34C2#FFFFFF#000000##FFFFFF
##7B34C21.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#6C5778
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b34c2;
/* rgb */ color: rgb(123, 52, 194);
/* oklch */ color: oklch(49.8% 0.208 302.0);
Tailwind
colors: {
  custom: {
    50: '#a772d5',
    500: '#7b34c2',
    950: '#000000',
  },
}
SCSS
$custom: #7b34c2;
$custom-light: #a772d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34c2",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 270,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49808,
    "c": 0.208,
    "h": 302
  },
  "luminance": 0.10562
}

Semantic roles & 50–950 ramp

primary
#7B34C2
secondary
#A9CC86
accent
#E14794
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7B34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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