#7D34C1#7D34C1

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

Color values

HEX#7D34C1
RGBrgb(125, 52, 193)
HSLhsl(271, 58%, 48%)
HSVhsv(271, 73%, 76%)
CMYKcmyk(35.2%, 73.1%, 0%, 24.3%)
CIE-LABlab(39.01, 56.81, -60.96)
CIE-LCHlch(39.01, 83.33, 312.98°)
OKLaboklab(49.97% 0.1133 -0.1737)
OKLCHoklch(49.97% 0.207 303.1)
XYZxyz(19.3088, 10.6662, 51.4833)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D34C1 #78C134
analogous
#3734C1 #7D34C1 #C134BE
triadic
#7D34C1 #C17D34 #34C17D
tetradic
#7D34C1 #C13734 #78C134 #34BEC1
square
#7D34C1 #C13734 #78C134 #34BEC1
split-complementary
#7D34C1 #BEC134 #34C137
monochromatic
#3F1A61 #5E2791 #7D34C1 #9B5ED4 #B98FE1

Accessibility & contrast

On white

6.70
#7D34C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7D34C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D34C1
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D34C1#FFFFFF#000000##FFFFFF
##7D34C11.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d34c1;
/* rgb */ color: rgb(125, 52, 193);
/* oklch */ color: oklch(50.0% 0.207 303.1);
Tailwind
colors: {
  custom: {
    50: '#a872d5',
    500: '#7d34c1',
    950: '#000000',
  },
}
SCSS
$custom: #7d34c1;
$custom-light: #a872d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d34c1",
  "rgb": {
    "r": 125,
    "g": 52,
    "b": 193
  },
  "hsl": {
    "h": 271.064,
    "s": 57.551,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49967,
    "c": 0.20734,
    "h": 303.1
  },
  "luminance": 0.10666
}

Semantic roles & 50–950 ramp

primary
#7D34C1
secondary
#A7CB86
accent
#E14791
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7D34C1

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

Preview Lab → · Contrast checker → · Palette generator →

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