#7B34BA#7B34BA

#7B34BA is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.2% C 0.200 H 304.0°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7B34BA
RGBrgb(123, 52, 186)
HSLhsl(272, 56%, 47%)
HSVhsv(272, 72%, 73%)
CMYKcmyk(33.9%, 72%, 0%, 27.1%)
CIE-LABlab(38.22, 54.78, -58.15)
CIE-LCHlch(38.22, 79.89, 313.29°)
OKLaboklab(49.18% 0.1118 -0.1655)
OKLCHoklch(49.18% 0.2 304)
XYZxyz(18.2573, 10.2122, 47.4542)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34BA #73BA34
analogous
#3834BA #7B34BA #BA34B6
triadic
#7B34BA #BA7B34 #34BA7B
tetradic
#7B34BA #BA3834 #73BA34 #34B6BA
square
#7B34BA #BA3834 #73BA34 #34B6BA
split-complementary
#7B34BA #B6BA34 #34BA38
monochromatic
#3C195A #5B278A #7B34BA #995AD1 #B78ADE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B34BA#FFFFFF#000000##FFFFFF
##7B34BA1.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)
#0058BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#6F5474
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b34ba;
/* rgb */ color: rgb(123, 52, 186);
/* oklch */ color: oklch(49.2% 0.200 304.0);
Tailwind
colors: {
  custom: {
    50: '#a672d0',
    500: '#7b34ba',
    950: '#000000',
  },
}
SCSS
$custom: #7b34ba;
$custom-light: #a672d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34ba",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 271.791,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49183,
    "c": 0.19971,
    "h": 304
  },
  "luminance": 0.10212
}

Semantic roles & 50–950 ramp

primary
#7B34BA
secondary
#A3C881
accent
#E0488F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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