#7B34C4#7B34C4

#7B34C4 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.0% C 0.210 H 301.5°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7B34C4
RGBrgb(123, 52, 196)
HSLhsl(270, 58%, 49%)
HSVhsv(270, 73%, 77%)
CMYKcmyk(37.2%, 73.5%, 0%, 23.1%)
CIE-LABlab(38.99, 57.16, -62.77)
CIE-LCHlch(38.99, 84.89, 312.32°)
OKLaboklab(49.97% 0.1099 -0.179)
OKLCHoklch(49.97% 0.21 301.5)
XYZxyz(19.3578, 10.6524, 53.2501)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34C4 #7DC434
analogous
#3435C4 #7B34C4 #C334C4
triadic
#7B34C4 #C47B34 #34C47B
tetradic
#7B34C4 #C43435 #7DC434 #34C4C3
square
#7B34C4 #C43435 #7DC434 #34C4C3
split-complementary
#7B34C4 #C4C334 #35C434
monochromatic
#3E1A63 #5D2794 #7B34C4 #9A60D5 #B991E2

Accessibility & contrast

On white

6.71
#7B34C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7B34C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B34C4
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34C4#FFFFFF#000000##FFFFFF
##7B34C41.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#005BC1
Tritanopia (blue-blind)
#6B5879
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b34c4;
/* rgb */ color: rgb(123, 52, 196);
/* oklch */ color: oklch(50.0% 0.210 301.5);
Tailwind
colors: {
  custom: {
    50: '#a772d7',
    500: '#7b34c4',
    950: '#000000',
  },
}
SCSS
$custom: #7b34c4;
$custom-light: #a772d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34c4",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 196
  },
  "hsl": {
    "h": 269.583,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.49967,
    "c": 0.21006,
    "h": 301.5
  },
  "luminance": 0.10652
}

Semantic roles & 50–950 ramp

primary
#7B34C4
secondary
#AACC87
accent
#E14795
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7B34C4

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

Preview Lab → · Contrast checker → · Palette generator →

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