#7E34AF#7E34AF

#7E34AF is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.7% C 0.189 H 308.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7E34AF
RGBrgb(126, 52, 175)
HSLhsl(276, 54%, 45%)
HSVhsv(276, 70%, 69%)
CMYKcmyk(28%, 70.3%, 0%, 31.4%)
CIE-LABlab(37.82, 52.84, -52.28)
CIE-LCHlch(37.82, 74.33, 315.31°)
OKLaboklab(48.73% 0.1176 -0.1481)
OKLCHoklch(48.73% 0.189 308.5)
XYZxyz(17.5685, 9.9870, 41.5513)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34AF #65AF34
analogous
#4134AF #7E34AF #AF34A2
triadic
#7E34AF #AF7E34 #34AF7E
tetradic
#7E34AF #AF4134 #65AF34 #34A2AF
square
#7E34AF #AF4134 #65AF34 #34A2AF
split-complementary
#7E34AF #A2AF34 #34AF41
monochromatic
#3A1851 #5C2680 #7E34AF #9C54CC #B883DA

Accessibility & contrast

On white

7.01
#7E34AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7E34AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34AF
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34AF#FFFFFF#000000##FFFFFF
##7E34AF1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#175AAC
Tritanopia (blue-blind)
#764F6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e34af;
/* rgb */ color: rgb(126, 52, 175);
/* oklch */ color: oklch(48.7% 0.189 308.5);
Tailwind
colors: {
  custom: {
    50: '#a872c8',
    500: '#7e34af',
    950: '#000000',
  },
}
SCSS
$custom: #7e34af;
$custom-light: #a872c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34af",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 276.098,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48731,
    "c": 0.18913,
    "h": 308.5
  },
  "luminance": 0.09987
}

Semantic roles & 50–950 ramp

primary
#7E34AF
secondary
#98C47B
accent
#DE4A85
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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