#7E34CF#7E34CF

#7E34CF is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.2% C 0.222 H 300.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7E34CF
RGBrgb(126, 52, 207)
HSLhsl(269, 62%, 51%)
HSVhsv(269, 75%, 81%)
CMYKcmyk(39.1%, 74.9%, 0%, 18.8%)
CIE-LABlab(40.24, 60.30, -67.10)
CIE-LCHlch(40.24, 90.21, 311.94°)
OKLaboklab(51.2% 0.1117 -0.1917)
OKLCHoklch(51.2% 0.222 300.2)
XYZxyz(21.0919, 11.3964, 60.1079)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34CF #85CF34
analogous
#3437CF #7E34CF #CB34CF
triadic
#7E34CF #CF7E34 #34CF7E
tetradic
#7E34CF #CF3437 #85CF34 #34CFCB
square
#7E34CF #CF3437 #85CF34 #34CFCB
split-complementary
#7E34CF #CFCB34 #37CF34
monochromatic
#421A6E #6026A0 #7E34CF #9D65DB #BD97E6

Accessibility & contrast

On white

6.40
#7E34CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7E34CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34CF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34CF#FFFFFF#000000##FFFFFF
##7E34CF1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#6B5C80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e34cf;
/* rgb */ color: rgb(126, 52, 207);
/* oklch */ color: oklch(51.2% 0.222 300.2);
Tailwind
colors: {
  custom: {
    50: '#aa73df',
    500: '#7e34cf',
    950: '#000000',
  },
}
SCSS
$custom: #7e34cf;
$custom-light: #aa73df;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34cf",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 268.645,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51203,
    "c": 0.22183,
    "h": 300.2
  },
  "luminance": 0.11397
}

Semantic roles & 50–950 ramp

primary
#7E34CF
secondary
#B1D28D
accent
#E54398
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E34CF

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

Preview Lab → · Contrast checker → · Palette generator →

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