#7D34C5#7D34C5

#7D34C5 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.211 H 302.1°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#7D34C5
RGBrgb(125, 52, 197)
HSLhsl(270, 58%, 49%)
HSVhsv(270, 74%, 77%)
CMYKcmyk(36.5%, 73.6%, 0%, 22.7%)
CIE-LABlab(39.32, 57.75, -62.80)
CIE-LCHlch(39.32, 85.31, 312.60°)
OKLaboklab(50.28% 0.1125 -0.1791)
OKLCHoklch(50.28% 0.211 302.1)
XYZxyz(19.7611, 10.8471, 53.8651)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D34C5 #7CC534
analogous
#3534C5 #7D34C5 #C534C5
triadic
#7D34C5 #C57D34 #34C57D
tetradic
#7D34C5 #C53534 #7CC534 #34C5C5
square
#7D34C5 #C53534 #7CC534 #34C5C5
split-complementary
#7D34C5 #C5C534 #34C535
monochromatic
#401A64 #5E2795 #7D34C5 #9C61D5 #BA91E2

Accessibility & contrast

On white

6.63
#7D34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7D34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D34C5
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D34C5#FFFFFF#000000##FFFFFF
##7D34C51.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#6E587A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7d34c5;
/* rgb */ color: rgb(125, 52, 197);
/* oklch */ color: oklch(50.3% 0.211 302.1);
Tailwind
colors: {
  custom: {
    50: '#a972d8',
    500: '#7d34c5',
    950: '#000000',
  },
}
SCSS
$custom: #7d34c5;
$custom-light: #a972d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d34c5",
  "rgb": {
    "r": 125,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 270.207,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50282,
    "c": 0.21145,
    "h": 302.1
  },
  "luminance": 0.10847
}

Semantic roles & 50–950 ramp

primary
#7D34C5
secondary
#AACD88
accent
#E14693
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7D34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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