#7E34BF#7E34BF

#7E34BF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.9% C 0.206 H 304.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7E34BF
RGBrgb(126, 52, 191)
HSLhsl(272, 57%, 48%)
HSVhsv(272, 73%, 75%)
CMYKcmyk(34%, 72.8%, 0%, 25.1%)
CIE-LABlab(38.99, 56.52, -59.82)
CIE-LCHlch(38.99, 82.30, 313.38°)
OKLaboklab(49.93% 0.1151 -0.1703)
OKLCHoklch(49.93% 0.206 304)
XYZxyz(19.2340, 10.6532, 50.3231)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34BF #75BF34
analogous
#3834BF #7E34BF #BF34BB
triadic
#7E34BF #BF7E34 #34BF7E
tetradic
#7E34BF #BF3834 #75BF34 #34BBBF
square
#7E34BF #BF3834 #75BF34 #34BBBF
split-complementary
#7E34BF #BBBF34 #34BF38
monochromatic
#3F1A5F #5E278F #7E34BF #9C5DD3 #B98DE0

Accessibility & contrast

On white

6.71
#7E34BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7E34BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34BF
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34BF#FFFFFF#000000##FFFFFF
##7E34BF1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#715677
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e34bf;
/* rgb */ color: rgb(126, 52, 191);
/* oklch */ color: oklch(49.9% 0.206 304.0);
Tailwind
colors: {
  custom: {
    50: '#a972d3',
    500: '#7e34bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e34bf;
$custom-light: #a972d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34bf",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 191
  },
  "hsl": {
    "h": 271.942,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49932,
    "c": 0.20551,
    "h": 304
  },
  "luminance": 0.10653
}

Semantic roles & 50–950 ramp

primary
#7E34BF
secondary
#A5CA84
accent
#E0478F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E34BF

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

Preview Lab → · Contrast checker → · Palette generator →

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