#7D34B5#7D34B5

#7D34B5 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.0% C 0.195 H 306.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7D34B5
RGBrgb(125, 52, 181)
HSLhsl(274, 55%, 46%)
HSVhsv(274, 71%, 71%)
CMYKcmyk(30.9%, 71.3%, 0%, 29%)
CIE-LABlab(38.11, 54.01, -55.36)
CIE-LCHlch(38.11, 77.34, 314.29°)
OKLaboklab(49.05% 0.1154 -0.1572)
OKLCHoklch(49.05% 0.195 306.3)
XYZxyz(18.0241, 10.1523, 44.7172)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D34B5 #6CB534
analogous
#3C34B5 #7D34B5 #B534AD
triadic
#7D34B5 #B57D34 #34B57D
tetradic
#7D34B5 #B53C34 #6CB534 #34ADB5
square
#7D34B5 #B53C34 #6CB534 #34ADB5
split-complementary
#7D34B5 #ADB534 #34B53C
monochromatic
#3B1956 #5C2685 #7D34B5 #9B57CF #B787DC

Accessibility & contrast

On white

6.93
#7D34B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7D34B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D34B5
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D34B5#FFFFFF#000000##FFFFFF
##7D34B51.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#735271
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d34b5;
/* rgb */ color: rgb(125, 52, 181);
/* oklch */ color: oklch(49.0% 0.195 306.3);
Tailwind
colors: {
  custom: {
    50: '#a772cc',
    500: '#7d34b5',
    950: '#000000',
  },
}
SCSS
$custom: #7d34b5;
$custom-light: #a772cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d34b5",
  "rgb": {
    "r": 125,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 273.953,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49048,
    "c": 0.19502,
    "h": 306.3
  },
  "luminance": 0.10152
}

Semantic roles & 50–950 ramp

primary
#7D34B5
secondary
#9EC67F
accent
#DF498A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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