#7E34B8#7E34B8

#7E34B8 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.4% C 0.198 H 305.9°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7E34B8
RGBrgb(126, 52, 184)
HSLhsl(274, 56%, 46%)
HSVhsv(274, 72%, 72%)
CMYKcmyk(31.5%, 71.7%, 0%, 27.8%)
CIE-LABlab(38.47, 54.90, -56.55)
CIE-LCHlch(38.47, 78.82, 314.15°)
OKLaboklab(49.4% 0.1163 -0.1607)
OKLCHoklch(49.4% 0.198 305.9)
XYZxyz(18.4820, 10.3525, 46.3627)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34B8 #6EB834
analogous
#3C34B8 #7E34B8 #B834B0
triadic
#7E34B8 #B87E34 #34B87E
tetradic
#7E34B8 #B83C34 #6EB834 #34B0B8
square
#7E34B8 #B83C34 #6EB834 #34B0B8
split-complementary
#7E34B8 #B0B834 #34B83C
monochromatic
#3D1959 #5D2788 #7E34B8 #9C59D0 #B889DE

Accessibility & contrast

On white

6.84
#7E34B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7E34B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34B8
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34B8#FFFFFF#000000##FFFFFF
##7E34B81.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#745373
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e34b8;
/* rgb */ color: rgb(126, 52, 184);
/* oklch */ color: oklch(49.4% 0.198 305.9);
Tailwind
colors: {
  custom: {
    50: '#a872ce',
    500: '#7e34b8',
    950: '#000000',
  },
}
SCSS
$custom: #7e34b8;
$custom-light: #a872ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34b8",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 273.636,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49397,
    "c": 0.19835,
    "h": 305.9
  },
  "luminance": 0.10352
}

Semantic roles & 50–950 ramp

primary
#7E34B8
secondary
#A0C880
accent
#DF498B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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