#7E34AC#7E34AC

#7E34AC is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.5% C 0.186 H 309.4°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7E34AC
RGBrgb(126, 52, 172)
HSLhsl(277, 54%, 44%)
HSVhsv(277, 70%, 67%)
CMYKcmyk(26.7%, 69.8%, 0%, 32.5%)
CIE-LABlab(37.61, 52.16, -50.83)
CIE-LCHlch(37.61, 72.83, 315.74°)
OKLaboklab(48.51% 0.118 -0.1439)
OKLCHoklch(48.51% 0.186 309.4)
XYZxyz(17.2771, 9.8705, 40.0168)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34AC #62AC34
analogous
#4234AC #7E34AC #AC349E
triadic
#7E34AC #AC7E34 #34AC7E
tetradic
#7E34AC #AC4234 #62AC34 #349EAC
square
#7E34AC #AC4234 #62AC34 #349EAC
split-complementary
#7E34AC #9EAC34 #34AC42
monochromatic
#39184E #5C267D #7E34AC #9D52CB #B781D9

Accessibility & contrast

On white

7.06
#7E34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7E34AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E34AC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34AC#FFFFFF#000000##FFFFFF
##7E34AC1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#1D5AA9
Tritanopia (blue-blind)
#774E6C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e34ac;
/* rgb */ color: rgb(126, 52, 172);
/* oklch */ color: oklch(48.5% 0.186 309.4);
Tailwind
colors: {
  custom: {
    50: '#a772c5',
    500: '#7e34ac',
    950: '#000000',
  },
}
SCSS
$custom: #7e34ac;
$custom-light: #a772c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34ac",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 277,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48514,
    "c": 0.18606,
    "h": 309.4
  },
  "luminance": 0.0987
}

Semantic roles & 50–950 ramp

primary
#7E34AC
secondary
#95C279
accent
#DD4B83
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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