#7E34B7#7E34B7

#7E34B7 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.3% C 0.197 H 306.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7E34B7
RGBrgb(126, 52, 183)
HSLhsl(274, 56%, 46%)
HSVhsv(274, 72%, 72%)
CMYKcmyk(31.1%, 71.6%, 0%, 28.2%)
CIE-LABlab(38.39, 54.67, -56.08)
CIE-LCHlch(38.39, 78.32, 314.27°)
OKLaboklab(49.32% 0.1165 -0.1593)
OKLCHoklch(49.32% 0.197 306.2)
XYZxyz(18.3776, 10.3107, 45.8126)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34B7 #6DB734
analogous
#3C34B7 #7E34B7 #B734AE
triadic
#7E34B7 #B77E34 #34B77E
tetradic
#7E34B7 #B73C34 #6DB734 #34AEB7
square
#7E34B7 #B73C34 #6DB734 #34AEB7
split-complementary
#7E34B7 #AEB734 #34B73C
monochromatic
#3C1958 #5D2687 #7E34B7 #9C59D0 #B888DD

Accessibility & contrast

On white

6.86
#7E34B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7E34B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34B7
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34B7#FFFFFF#000000##FFFFFF
##7E34B71.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#745372
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e34b7;
/* rgb */ color: rgb(126, 52, 183);
/* oklch */ color: oklch(49.3% 0.197 306.2);
Tailwind
colors: {
  custom: {
    50: '#a872cd',
    500: '#7e34b7',
    950: '#000000',
  },
}
SCSS
$custom: #7e34b7;
$custom-light: #a872cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34b7",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 273.893,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49322,
    "c": 0.19732,
    "h": 306.2
  },
  "luminance": 0.10311
}

Semantic roles & 50–950 ramp

primary
#7E34B7
secondary
#9FC780
accent
#DF498A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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