#7C34C2#7C34C2

#7C34C2 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.9% C 0.208 H 302.4°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#7C34C2
RGBrgb(124, 52, 194)
HSLhsl(270, 58%, 48%)
HSVhsv(270, 73%, 76%)
CMYKcmyk(36.1%, 73.2%, 0%, 23.9%)
CIE-LABlab(38.96, 56.86, -61.64)
CIE-LCHlch(38.96, 83.86, 312.69°)
OKLaboklab(49.93% 0.1117 -0.1757)
OKLCHoklch(49.93% 0.208 302.4)
XYZxyz(19.2755, 10.6361, 52.0659)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C34C2 #7AC234
analogous
#3534C2 #7C34C2 #C234C1
triadic
#7C34C2 #C27C34 #34C27C
tetradic
#7C34C2 #C23534 #7AC234 #34C1C2
square
#7C34C2 #C23534 #7AC234 #34C1C2
split-complementary
#7C34C2 #C1C234 #34C235
monochromatic
#3E1A61 #5D2792 #7C34C2 #9A5FD4 #B98FE1

Accessibility & contrast

On white

6.72
#7C34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C34C2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C34C2#FFFFFF#000000##FFFFFF
##7C34C21.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c34c2;
/* rgb */ color: rgb(124, 52, 194);
/* oklch */ color: oklch(49.9% 0.208 302.4);
Tailwind
colors: {
  custom: {
    50: '#a872d5',
    500: '#7c34c2',
    950: '#000000',
  },
}
SCSS
$custom: #7c34c2;
$custom-light: #a872d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c34c2",
  "rgb": {
    "r": 124,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 270.423,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49927,
    "c": 0.20818,
    "h": 302.4
  },
  "luminance": 0.10636
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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