#7E34BB#7E34BB

#7E34BB is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.6% C 0.201 H 305.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7E34BB
RGBrgb(126, 52, 187)
HSLhsl(273, 56%, 47%)
HSVhsv(273, 72%, 73%)
CMYKcmyk(32.6%, 72.2%, 0%, 26.7%)
CIE-LABlab(38.69, 55.59, -57.96)
CIE-LCHlch(38.69, 80.31, 313.80°)
OKLaboklab(49.62% 0.1158 -0.1648)
OKLCHoklch(49.62% 0.201 305.1)
XYZxyz(18.7998, 10.4796, 48.0364)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34BB #71BB34
analogous
#3B34BB #7E34BB #BB34B5
triadic
#7E34BB #BB7E34 #34BB7E
tetradic
#7E34BB #BB3B34 #71BB34 #34B5BB
square
#7E34BB #BB3B34 #71BB34 #34B5BB
split-complementary
#7E34BB #B5BB34 #34BB3B
monochromatic
#3D195B #5E278B #7E34BB #9C5BD1 #B98BDF

Accessibility & contrast

On white

6.78
#7E34BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E34BB
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34BB#FFFFFF#000000##FFFFFF
##7E34BB1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#735474
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e34bb;
/* rgb */ color: rgb(126, 52, 187);
/* oklch */ color: oklch(49.6% 0.201 305.1);
Tailwind
colors: {
  custom: {
    50: '#a972d0',
    500: '#7e34bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e34bb;
$custom-light: #a972d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34bb",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 272.889,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49624,
    "c": 0.20142,
    "h": 305.1
  },
  "luminance": 0.10479
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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