#7B34B1#7B34B1

#7B34B1 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.190 H 306.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7B34B1
RGBrgb(123, 52, 177)
HSLhsl(274, 55%, 45%)
HSVhsv(274, 71%, 69%)
CMYKcmyk(30.5%, 70.6%, 0%, 30.6%)
CIE-LABlab(37.56, 52.68, -53.91)
CIE-LCHlch(37.56, 75.38, 314.34°)
OKLaboklab(48.5% 0.1133 -0.153)
OKLCHoklch(48.5% 0.19 306.5)
XYZxyz(17.3305, 9.8414, 42.5730)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34B1 #6AB134
analogous
#3D34B1 #7B34B1 #B134A8
triadic
#7B34B1 #B17B34 #34B17B
tetradic
#7B34B1 #B13D34 #6AB134 #34A8B1
square
#7B34B1 #B13D34 #6AB134 #34A8B1
split-complementary
#7B34B1 #A8B134 #34B13D
monochromatic
#391852 #5A2682 #7B34B1 #9955CD #B684DB

Accessibility & contrast

On white

7.07
#7B34B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7B34B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B34B1
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34B1#FFFFFF#000000##FFFFFF
##7B34B11.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#0759AE
Tritanopia (blue-blind)
#72516F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b34b1;
/* rgb */ color: rgb(123, 52, 177);
/* oklch */ color: oklch(48.5% 0.190 306.5);
Tailwind
colors: {
  custom: {
    50: '#a671c9',
    500: '#7b34b1',
    950: '#000000',
  },
}
SCSS
$custom: #7b34b1;
$custom-light: #a671c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34b1",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 177
  },
  "hsl": {
    "h": 274.08,
    "s": 54.585,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48502,
    "c": 0.19037,
    "h": 306.5
  },
  "luminance": 0.09841
}

Semantic roles & 50–950 ramp

primary
#7B34B1
secondary
#9BC57C
accent
#DE4A8A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B34B1

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

Preview Lab → · Contrast checker → · Palette generator →

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