#7B34BB#7B34BB

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

Color values

HEX#7B34BB
RGBrgb(123, 52, 187)
HSLhsl(272, 56%, 47%)
HSVhsv(272, 72%, 73%)
CMYKcmyk(34.2%, 72.2%, 0%, 26.7%)
CIE-LABlab(38.30, 55.02, -58.62)
CIE-LCHlch(38.30, 80.39, 313.19°)
OKLaboklab(49.26% 0.1116 -0.1668)
OKLCHoklch(49.26% 0.201 303.8)
XYZxyz(18.3639, 10.2548, 48.0160)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34BB #74BB34
analogous
#3834BB #7B34BB #BB34B7
triadic
#7B34BB #BB7B34 #34BB7B
tetradic
#7B34BB #BB3834 #74BB34 #34B7BB
square
#7B34BB #BB3834 #74BB34 #34B7BB
split-complementary
#7B34BB #B7BB34 #34BB38
monochromatic
#3C195B #5C278B #7B34BB #995BD1 #B78BDF

Accessibility & contrast

On white

6.88
#7B34BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7B34BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B34BB
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34BB#FFFFFF#000000##FFFFFF
##7B34BB1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#6E5574
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b34bb;
/* rgb */ color: rgb(123, 52, 187);
/* oklch */ color: oklch(49.3% 0.201 303.8);
Tailwind
colors: {
  custom: {
    50: '#a772d0',
    500: '#7b34bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b34bb;
$custom-light: #a772d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34bb",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 271.556,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49261,
    "c": 0.20075,
    "h": 303.8
  },
  "luminance": 0.10255
}

Semantic roles & 50–950 ramp

primary
#7B34BB
secondary
#A4C982
accent
#E04890
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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