#7E34A2#7E34A2

#7E34A2 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.8% C 0.176 H 312.6°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7E34A2
RGBrgb(126, 52, 162)
HSLhsl(280, 51%, 42%)
HSVhsv(280, 68%, 64%)
CMYKcmyk(22.2%, 67.9%, 0%, 36.5%)
CIE-LABlab(36.93, 49.94, -45.94)
CIE-LCHlch(36.93, 67.85, 317.39°)
OKLaboklab(47.81% 0.119 -0.1295)
OKLCHoklch(47.81% 0.176 312.6)
XYZxyz(16.3526, 9.5007, 35.1478)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34A2 #58A234
analogous
#4734A2 #7E34A2 #A2348F
triadic
#7E34A2 #A27E34 #34A27E
tetradic
#7E34A2 #A24734 #58A234 #348FA2
square
#7E34A2 #A24734 #58A234 #348FA2
split-complementary
#7E34A2 #8FA234 #34A247
monochromatic
#361645 #5A2574 #7E34A2 #9E4DC6 #B87CD5

Accessibility & contrast

On white

7.24
#7E34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7E34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E34A2
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34A2#FFFFFF#000000##FFFFFF
##7E34A21.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#2B589F
Tritanopia (blue-blind)
#7A4A67
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e34a2;
/* rgb */ color: rgb(126, 52, 162);
/* oklch */ color: oklch(47.8% 0.176 312.6);
Tailwind
colors: {
  custom: {
    50: '#a771be',
    500: '#7e34a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e34a2;
$custom-light: #a771be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34a2",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 280.364,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47813,
    "c": 0.17584,
    "h": 312.6
  },
  "luminance": 0.095
}

Semantic roles & 50–950 ramp

primary
#7E34A2
secondary
#8CBE74
accent
#DB4D7B
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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