#7E34D1#7E34D1

#7E34D1 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.224 H 299.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7E34D1
RGBrgb(126, 52, 209)
HSLhsl(268, 63%, 51%)
HSVhsv(268, 75%, 82%)
CMYKcmyk(39.7%, 75.1%, 0%, 18%)
CIE-LABlab(40.40, 60.77, -67.99)
CIE-LCHlch(40.40, 91.19, 311.79°)
OKLaboklab(51.37% 0.1112 -0.1943)
OKLCHoklch(51.37% 0.224 299.8)
XYZxyz(21.3379, 11.4948, 61.4038)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34D1 #87D134
analogous
#3438D1 #7E34D1 #CC34D1
triadic
#7E34D1 #D17E34 #34D17E
tetradic
#7E34D1 #D13438 #87D134 #34D1CC
square
#7E34D1 #D13438 #87D134 #34D1CC
split-complementary
#7E34D1 #D1CC34 #38D134
monochromatic
#431A71 #6025A3 #7E34D1 #9E66DC #BD98E8

Accessibility & contrast

On white

6.37
#7E34D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7E34D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34D1
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34D1#FFFFFF#000000##FFFFFF
##7E34D11.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#005ECE
Tritanopia (blue-blind)
#6A5D81
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e34d1;
/* rgb */ color: rgb(126, 52, 209);
/* oklch */ color: oklch(51.4% 0.224 299.8);
Tailwind
colors: {
  custom: {
    50: '#aa73e0',
    500: '#7e34d1',
    950: '#000000',
  },
}
SCSS
$custom: #7e34d1;
$custom-light: #aa73e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34d1",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 268.28,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51366,
    "c": 0.22386,
    "h": 299.8
  },
  "luminance": 0.11495
}

Semantic roles & 50–950 ramp

primary
#7E34D1
secondary
#B2D38E
accent
#E64299
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E34D1

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

Preview Lab → · Contrast checker → · Palette generator →

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