#7D34C2#7D34C2

#7D34C2 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.0% C 0.208 H 302.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7D34C2
RGBrgb(125, 52, 194)
HSLhsl(271, 58%, 48%)
HSVhsv(271, 73%, 76%)
CMYKcmyk(35.6%, 73.2%, 0%, 23.9%)
CIE-LABlab(39.09, 57.04, -61.42)
CIE-LCHlch(39.09, 83.82, 312.88°)
OKLaboklab(50.04% 0.1131 -0.175)
OKLCHoklch(50.04% 0.208 302.9)
XYZxyz(19.4207, 10.7110, 52.0728)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D34C2 #79C234
analogous
#3634C2 #7D34C2 #C234C0
triadic
#7D34C2 #C27D34 #34C27D
tetradic
#7D34C2 #C23634 #79C234 #34C0C2
square
#7D34C2 #C23634 #79C234 #34C0C2
split-complementary
#7D34C2 #C0C234 #34C236
monochromatic
#3F1A61 #5E2792 #7D34C2 #9B5FD4 #B98FE1

Accessibility & contrast

On white

6.68
#7D34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7D34C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D34C2
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D34C2#FFFFFF#000000##FFFFFF
##7D34C21.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#6F5778
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d34c2;
/* rgb */ color: rgb(125, 52, 194);
/* oklch */ color: oklch(50.0% 0.208 302.9);
Tailwind
colors: {
  custom: {
    50: '#a872d5',
    500: '#7d34c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d34c2;
$custom-light: #a872d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d34c2",
  "rgb": {
    "r": 125,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 270.845,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50045,
    "c": 0.20838,
    "h": 302.9
  },
  "luminance": 0.10711
}

Semantic roles & 50–950 ramp

primary
#7D34C2
secondary
#A8CC86
accent
#E14792
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7D34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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