#7B34AC#7B34AC

#7B34AC is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.1% C 0.185 H 308.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7B34AC
RGBrgb(123, 52, 172)
HSLhsl(276, 54%, 44%)
HSVhsv(276, 70%, 67%)
CMYKcmyk(28.5%, 69.8%, 0%, 32.5%)
CIE-LABlab(37.20, 51.53, -51.51)
CIE-LCHlch(37.20, 72.86, 315.01°)
OKLaboklab(48.13% 0.1139 -0.146)
OKLCHoklch(48.13% 0.185 308)
XYZxyz(16.8412, 9.6457, 39.9963)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34AC #65AC34
analogous
#3F34AC #7B34AC #AC34A1
triadic
#7B34AC #AC7B34 #34AC7B
tetradic
#7B34AC #AC3F34 #65AC34 #34A1AC
square
#7B34AC #AC3F34 #65AC34 #34A1AC
split-complementary
#7B34AC #A1AC34 #34AC3F
monochromatic
#38184E #59267D #7B34AC #9A52CB #B581D9

Accessibility & contrast

On white

7.17
#7B34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7B34AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B34AC
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34AC#FFFFFF#000000##FFFFFF
##7B34AC1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#1658A9
Tritanopia (blue-blind)
#734F6C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b34ac;
/* rgb */ color: rgb(123, 52, 172);
/* oklch */ color: oklch(48.1% 0.185 308.0);
Tailwind
colors: {
  custom: {
    50: '#a571c5',
    500: '#7b34ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b34ac;
$custom-light: #a571c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34ac",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 275.5,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48134,
    "c": 0.18517,
    "h": 308
  },
  "luminance": 0.09645
}

Semantic roles & 50–950 ramp

primary
#7B34AC
secondary
#97C279
accent
#DD4B87
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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