#7D34C4#7D34C4

#7D34C4 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.2% C 0.210 H 302.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7D34C4
RGBrgb(125, 52, 196)
HSLhsl(270, 58%, 49%)
HSVhsv(270, 73%, 77%)
CMYKcmyk(36.2%, 73.5%, 0%, 23.1%)
CIE-LABlab(39.24, 57.51, -62.34)
CIE-LCHlch(39.24, 84.82, 312.69°)
OKLaboklab(50.2% 0.1127 -0.1777)
OKLCHoklch(50.2% 0.21 302.4)
XYZxyz(19.6469, 10.8014, 53.2637)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D34C4 #7BC434
analogous
#3534C4 #7D34C4 #C434C3
triadic
#7D34C4 #C47D34 #34C47D
tetradic
#7D34C4 #C43534 #7BC434 #34C3C4
square
#7D34C4 #C43534 #7BC434 #34C3C4
split-complementary
#7D34C4 #C3C434 #34C435
monochromatic
#3F1A63 #5E2794 #7D34C4 #9B60D5 #BA91E2

Accessibility & contrast

On white

6.65
#7D34C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7D34C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D34C4
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D34C4#FFFFFF#000000##FFFFFF
##7D34C41.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#6E5879
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d34c4;
/* rgb */ color: rgb(125, 52, 196);
/* oklch */ color: oklch(50.2% 0.210 302.4);
Tailwind
colors: {
  custom: {
    50: '#a972d7',
    500: '#7d34c4',
    950: '#000000',
  },
}
SCSS
$custom: #7d34c4;
$custom-light: #a972d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d34c4",
  "rgb": {
    "r": 125,
    "g": 52,
    "b": 196
  },
  "hsl": {
    "h": 270.417,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50203,
    "c": 0.21043,
    "h": 302.4
  },
  "luminance": 0.10801
}

Semantic roles & 50–950 ramp

primary
#7D34C4
secondary
#A9CC87
accent
#E14793
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7D34C4

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

Preview Lab → · Contrast checker → · Palette generator →

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