#7B34BC#7B34BC

#7B34BC is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.202 H 303.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7B34BC
RGBrgb(123, 52, 188)
HSLhsl(271, 57%, 47%)
HSVhsv(271, 72%, 74%)
CMYKcmyk(34.6%, 72.3%, 0%, 26.3%)
CIE-LABlab(38.37, 55.26, -59.08)
CIE-LCHlch(38.37, 80.90, 313.08°)
OKLaboklab(49.34% 0.1114 -0.1682)
OKLCHoklch(49.34% 0.202 303.5)
XYZxyz(18.4714, 10.2978, 48.5818)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34BC #75BC34
analogous
#3734BC #7B34BC #BC34B9
triadic
#7B34BC #BC7B34 #34BC7B
tetradic
#7B34BC #BC3734 #75BC34 #34B9BC
square
#7B34BC #BC3734 #75BC34 #34B9BC
split-complementary
#7B34BC #B9BC34 #34BC37
monochromatic
#3C195C #5C278C #7B34BC #995BD2 #B78BDF

Accessibility & contrast

On white

6.86
#7B34BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7B34BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B34BC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34BC#FFFFFF#000000##FFFFFF
##7B34BC1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b34bc;
/* rgb */ color: rgb(123, 52, 188);
/* oklch */ color: oklch(49.3% 0.202 303.5);
Tailwind
colors: {
  custom: {
    50: '#a772d1',
    500: '#7b34bc',
    950: '#000000',
  },
}
SCSS
$custom: #7b34bc;
$custom-light: #a772d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34bc",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 271.324,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49338,
    "c": 0.20178,
    "h": 303.5
  },
  "luminance": 0.10298
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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