#7E34B4#7E34B4

#7E34B4 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.1% C 0.194 H 307.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7E34B4
RGBrgb(126, 52, 180)
HSLhsl(275, 55%, 45%)
HSVhsv(275, 71%, 71%)
CMYKcmyk(30%, 71.1%, 0%, 29.4%)
CIE-LABlab(38.18, 53.98, -54.66)
CIE-LCHlch(38.18, 76.82, 314.64°)
OKLaboklab(49.1% 0.1169 -0.1551)
OKLCHoklch(49.1% 0.194 307)
XYZxyz(18.0686, 10.1871, 44.1856)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34B4 #6AB434
analogous
#3E34B4 #7E34B4 #B434AA
triadic
#7E34B4 #B47E34 #34B47E
tetradic
#7E34B4 #B43E34 #6AB434 #34AAB4
square
#7E34B4 #B43E34 #6AB434 #34AAB4
split-complementary
#7E34B4 #AAB434 #34B43E
monochromatic
#3C1955 #5D2685 #7E34B4 #9C57CE #B886DC

Accessibility & contrast

On white

6.91
#7E34B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7E34B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34B4
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34B4#FFFFFF#000000##FFFFFF
##7E34B41.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#075AB1
Tritanopia (blue-blind)
#755170
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e34b4;
/* rgb */ color: rgb(126, 52, 180);
/* oklch */ color: oklch(49.1% 0.194 307.0);
Tailwind
colors: {
  custom: {
    50: '#a872cb',
    500: '#7e34b4',
    950: '#000000',
  },
}
SCSS
$custom: #7e34b4;
$custom-light: #a872cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34b4",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 274.688,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49098,
    "c": 0.19425,
    "h": 307
  },
  "luminance": 0.10187
}

Semantic roles & 50–950 ramp

primary
#7E34B4
secondary
#9CC67E
accent
#DF4988
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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