#7B34C1#7B34C1

#7B34C1 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.207 H 302.3°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7B34C1
RGBrgb(123, 52, 193)
HSLhsl(270, 58%, 48%)
HSVhsv(270, 73%, 76%)
CMYKcmyk(36.3%, 73.1%, 0%, 24.3%)
CIE-LABlab(38.75, 56.44, -61.39)
CIE-LCHlch(38.75, 83.39, 312.59°)
OKLaboklab(49.73% 0.1105 -0.175)
OKLCHoklch(49.73% 0.207 302.3)
XYZxyz(19.0197, 10.5171, 51.4697)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34C1 #7AC134
analogous
#3534C1 #7B34C1 #C134C0
triadic
#7B34C1 #C17B34 #34C17B
tetradic
#7B34C1 #C13534 #7AC134 #34C0C1
square
#7B34C1 #C13534 #7AC134 #34C0C1
split-complementary
#7B34C1 #C0C134 #34C135
monochromatic
#3E1A61 #5C2791 #7B34C1 #9A5ED4 #B88FE1

Accessibility & contrast

On white

6.77
#7B34C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7B34C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B34C1
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34C1#FFFFFF#000000##FFFFFF
##7B34C11.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC5
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#6C5778
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b34c1;
/* rgb */ color: rgb(123, 52, 193);
/* oklch */ color: oklch(49.7% 0.207 302.3);
Tailwind
colors: {
  custom: {
    50: '#a772d5',
    500: '#7b34c1',
    950: '#000000',
  },
}
SCSS
$custom: #7b34c1;
$custom-light: #a772d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34c1",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 193
  },
  "hsl": {
    "h": 270.213,
    "s": 57.551,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49729,
    "c": 0.20696,
    "h": 302.3
  },
  "luminance": 0.10517
}

Semantic roles & 50–950 ramp

primary
#7B34C1
secondary
#A8CB86
accent
#E14793
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7B34C1

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

Preview Lab → · Contrast checker → · Palette generator →

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