#7D34B7#7D34B7

#7D34B7 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.2% C 0.197 H 305.7°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#7D34B7
RGBrgb(125, 52, 183)
HSLhsl(273, 56%, 46%)
HSVhsv(273, 72%, 72%)
CMYKcmyk(31.7%, 71.6%, 0%, 28.2%)
CIE-LABlab(38.26, 54.47, -56.31)
CIE-LCHlch(38.26, 78.34, 314.05°)
OKLaboklab(49.2% 0.1151 -0.16)
OKLCHoklch(49.2% 0.197 305.7)
XYZxyz(18.2308, 10.2350, 45.8057)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D34B7 #6EB734
analogous
#3B34B7 #7D34B7 #B734AF
triadic
#7D34B7 #B77D34 #34B77D
tetradic
#7D34B7 #B73B34 #6EB734 #34AFB7
square
#7D34B7 #B73B34 #6EB734 #34AFB7
split-complementary
#7D34B7 #AFB734 #34B73B
monochromatic
#3C1958 #5C2687 #7D34B7 #9B59D0 #B888DD

Accessibility & contrast

On white

6.89
#7D34B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7D34B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D34B7
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D34B7#FFFFFF#000000##FFFFFF
##7D34B71.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#735372
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d34b7;
/* rgb */ color: rgb(125, 52, 183);
/* oklch */ color: oklch(49.2% 0.197 305.7);
Tailwind
colors: {
  custom: {
    50: '#a872cd',
    500: '#7d34b7',
    950: '#000000',
  },
}
SCSS
$custom: #7d34b7;
$custom-light: #a872cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d34b7",
  "rgb": {
    "r": 125,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 273.435,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49199,
    "c": 0.19708,
    "h": 305.7
  },
  "luminance": 0.10235
}

Semantic roles & 50–950 ramp

primary
#7D34B7
secondary
#9FC780
accent
#DF498B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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