#7E34A3#7E34A3

#7E34A3 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.9% C 0.177 H 312.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7E34A3
RGBrgb(126, 52, 163)
HSLhsl(280, 52%, 42%)
HSVhsv(280, 68%, 64%)
CMYKcmyk(22.7%, 68.1%, 0%, 36.1%)
CIE-LABlab(37.00, 50.16, -46.43)
CIE-LCHlch(37.00, 68.35, 317.21°)
OKLaboklab(47.88% 0.1189 -0.1309)
OKLCHoklch(47.88% 0.177 312.2)
XYZxyz(16.4418, 9.5364, 35.6178)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34A3 #59A334
analogous
#4734A3 #7E34A3 #A33491
triadic
#7E34A3 #A37E34 #34A37E
tetradic
#7E34A3 #A34734 #59A334 #3491A3
square
#7E34A3 #A34734 #59A334 #3491A3
split-complementary
#7E34A3 #91A334 #34A347
monochromatic
#361646 #5A2575 #7E34A3 #9E4EC6 #B87CD5

Accessibility & contrast

On white

7.22
#7E34A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E34A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E34A3
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34A3#FFFFFF#000000##FFFFFF
##7E34A31.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#2A59A0
Tritanopia (blue-blind)
#7A4B67
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e34a3;
/* rgb */ color: rgb(126, 52, 163);
/* oklch */ color: oklch(47.9% 0.177 312.2);
Tailwind
colors: {
  custom: {
    50: '#a771bf',
    500: '#7e34a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e34a3;
$custom-light: #a771bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34a3",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 163
  },
  "hsl": {
    "h": 280,
    "s": 51.628,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47882,
    "c": 0.17686,
    "h": 312.2
  },
  "luminance": 0.09536
}

Semantic roles & 50–950 ramp

primary
#7E34A3
secondary
#8DBE75
accent
#DB4D7C
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E34A3

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

Preview Lab → · Contrast checker → · Palette generator →

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