#7B34C5#7B34C5

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

Color values

HEX#7B34C5
RGBrgb(123, 52, 197)
HSLhsl(269, 58%, 49%)
HSVhsv(269, 74%, 77%)
CMYKcmyk(37.6%, 73.6%, 0%, 22.7%)
CIE-LABlab(39.07, 57.40, -63.22)
CIE-LCHlch(39.07, 85.39, 312.24°)
OKLaboklab(50.05% 0.1097 -0.1804)
OKLCHoklch(50.05% 0.211 301.3)
XYZxyz(19.4720, 10.6980, 53.8516)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34C5 #7EC534
analogous
#3436C5 #7B34C5 #C434C5
triadic
#7B34C5 #C57B34 #34C57B
tetradic
#7B34C5 #C53436 #7EC534 #34C5C4
square
#7B34C5 #C53436 #7EC534 #34C5C4
split-complementary
#7B34C5 #C5C434 #36C534
monochromatic
#3F1A64 #5D2795 #7B34C5 #9A61D5 #B991E2

Accessibility & contrast

On white

6.69
#7B34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7B34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B34C5
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34C5#FFFFFF#000000##FFFFFF
##7B34C51.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#6B597A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b34c5;
/* rgb */ color: rgb(123, 52, 197);
/* oklch */ color: oklch(50.0% 0.211 301.3);
Tailwind
colors: {
  custom: {
    50: '#a772d8',
    500: '#7b34c5',
    950: '#000000',
  },
}
SCSS
$custom: #7b34c5;
$custom-light: #a772d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34c5",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 269.379,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50047,
    "c": 0.21109,
    "h": 301.3
  },
  "luminance": 0.10698
}

Semantic roles & 50–950 ramp

primary
#7B34C5
secondary
#ABCD88
accent
#E14696
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7B34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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