#7E34BC#7E34BC

#7E34BC is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.202 H 304.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7E34BC
RGBrgb(126, 52, 188)
HSLhsl(273, 57%, 47%)
HSVhsv(273, 72%, 74%)
CMYKcmyk(33%, 72.3%, 0%, 26.3%)
CIE-LABlab(38.76, 55.82, -58.43)
CIE-LCHlch(38.76, 80.81, 313.69°)
OKLaboklab(49.7% 0.1156 -0.1662)
OKLCHoklch(49.7% 0.202 304.8)
XYZxyz(18.9072, 10.5225, 48.6022)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34BC #72BC34
analogous
#3A34BC #7E34BC #BC34B6
triadic
#7E34BC #BC7E34 #34BC7E
tetradic
#7E34BC #BC3A34 #72BC34 #34B6BC
square
#7E34BC #BC3A34 #72BC34 #34B6BC
split-complementary
#7E34BC #B6BC34 #34BC3A
monochromatic
#3E195C #5E278C #7E34BC #9C5BD2 #B98BDF

Accessibility & contrast

On white

6.76
#7E34BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7E34BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34BC
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34BC#FFFFFF#000000##FFFFFF
##7E34BC1.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#725575
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e34bc;
/* rgb */ color: rgb(126, 52, 188);
/* oklch */ color: oklch(49.7% 0.202 304.8);
Tailwind
colors: {
  custom: {
    50: '#a972d1',
    500: '#7e34bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e34bc;
$custom-light: #a972d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34bc",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 272.647,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49701,
    "c": 0.20244,
    "h": 304.8
  },
  "luminance": 0.10522
}

Semantic roles & 50–950 ramp

primary
#7E34BC
secondary
#A3C983
accent
#E0488D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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