#7B34D1#7B34D1

#7B34D1 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.0% C 0.223 H 298.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7B34D1
RGBrgb(123, 52, 209)
HSLhsl(267, 63%, 51%)
HSVhsv(267, 75%, 82%)
CMYKcmyk(41.1%, 75.1%, 0%, 18%)
CIE-LABlab(40.03, 60.28, -68.61)
CIE-LCHlch(40.03, 91.33, 311.30°)
OKLaboklab(51.03% 0.1069 -0.1962)
OKLCHoklch(51.03% 0.223 298.6)
XYZxyz(20.9020, 11.2701, 61.3833)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34D1 #8AD134
analogous
#343BD1 #7B34D1 #C934D1
triadic
#7B34D1 #D17B34 #34D17B
tetradic
#7B34D1 #D1343B #8AD134 #34D1C9
square
#7B34D1 #D1343B #8AD134 #34D1C9
split-complementary
#7B34D1 #D1C934 #3BD134
monochromatic
#411A71 #5E25A3 #7B34D1 #9B66DC #BC98E8

Accessibility & contrast

On white

6.45
#7B34D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7B34D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B34D1
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34D1#FFFFFF#000000##FFFFFF
##7B34D11.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#005DCE
Tritanopia (blue-blind)
#665D81
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b34d1;
/* rgb */ color: rgb(123, 52, 209);
/* oklch */ color: oklch(51.0% 0.223 298.6);
Tailwind
colors: {
  custom: {
    50: '#a973e0',
    500: '#7b34d1',
    950: '#000000',
  },
}
SCSS
$custom: #7b34d1;
$custom-light: #a973e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34d1",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 267.134,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51025,
    "c": 0.22345,
    "h": 298.6
  },
  "luminance": 0.1127
}

Semantic roles & 50–950 ramp

primary
#7B34D1
secondary
#B4D38E
accent
#E6429C
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B34D1

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

Preview Lab → · Contrast checker → · Palette generator →

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