#7E34AB#7E34AB

#7E34AB is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.4% C 0.185 H 309.7°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7E34AB
RGBrgb(126, 52, 171)
HSLhsl(277, 53%, 44%)
HSVhsv(277, 70%, 67%)
CMYKcmyk(26.3%, 69.6%, 0%, 32.9%)
CIE-LABlab(37.54, 51.94, -50.35)
CIE-LCHlch(37.54, 72.33, 315.89°)
OKLaboklab(48.44% 0.1181 -0.1424)
OKLCHoklch(48.44% 0.185 309.7)
XYZxyz(17.1814, 9.8322, 39.5129)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34AB #61AB34
analogous
#4234AB #7E34AB #AB349C
triadic
#7E34AB #AB7E34 #34AB7E
tetradic
#7E34AB #AB4234 #61AB34 #349CAB
square
#7E34AB #AB4234 #61AB34 #349CAB
split-complementary
#7E34AB #9CAB34 #34AB42
monochromatic
#39174D #5B267C #7E34AB #9D52CA #B781D9

Accessibility & contrast

On white

7.08
#7E34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E34AB
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34AB#FFFFFF#000000##FFFFFF
##7E34AB1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#1F59A8
Tritanopia (blue-blind)
#784E6B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e34ab;
/* rgb */ color: rgb(126, 52, 171);
/* oklch */ color: oklch(48.4% 0.185 309.7);
Tailwind
colors: {
  custom: {
    50: '#a771c5',
    500: '#7e34ab',
    950: '#000000',
  },
}
SCSS
$custom: #7e34ab;
$custom-light: #a771c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34ab",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 277.311,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48443,
    "c": 0.18503,
    "h": 309.7
  },
  "luminance": 0.09832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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