#7E34B3#7E34B3

#7E34B3 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 49.0% C 0.193 H 307.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7E34B3
RGBrgb(126, 52, 179)
HSLhsl(275, 55%, 45%)
HSVhsv(275, 71%, 70%)
CMYKcmyk(29.6%, 70.9%, 0%, 29.8%)
CIE-LABlab(38.10, 53.75, -54.19)
CIE-LCHlch(38.10, 76.32, 314.77°)
OKLaboklab(49.02% 0.1171 -0.1537)
OKLCHoklch(49.02% 0.193 307.3)
XYZxyz(17.9671, 10.1465, 43.6510)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34B3 #69B334
analogous
#3F34B3 #7E34B3 #B334A8
triadic
#7E34B3 #B37E34 #34B37E
tetradic
#7E34B3 #B33F34 #69B334 #34A8B3
square
#7E34B3 #B33F34 #69B334 #34A8B3
split-complementary
#7E34B3 #A8B334 #34B33F
monochromatic
#3B1854 #5D2684 #7E34B3 #9C56CE #B886DC

Accessibility & contrast

On white

6.93
#7E34B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7E34B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34B3
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34B3#FFFFFF#000000##FFFFFF
##7E34B31.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#0B5AB0
Tritanopia (blue-blind)
#755170
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e34b3;
/* rgb */ color: rgb(126, 52, 179);
/* oklch */ color: oklch(49.0% 0.193 307.3);
Tailwind
colors: {
  custom: {
    50: '#a872cb',
    500: '#7e34b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e34b3;
$custom-light: #a872cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34b3",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 274.961,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49024,
    "c": 0.19323,
    "h": 307.3
  },
  "luminance": 0.10146
}

Semantic roles & 50–950 ramp

primary
#7E34B3
secondary
#9BC57D
accent
#DE4988
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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