#7E34B2#7E34B2

#7E34B2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.9% C 0.192 H 307.6°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#7E34B2
RGBrgb(126, 52, 178)
HSLhsl(275, 55%, 45%)
HSVhsv(275, 71%, 70%)
CMYKcmyk(29.2%, 70.8%, 0%, 30.2%)
CIE-LABlab(38.03, 53.52, -53.71)
CIE-LCHlch(38.03, 75.83, 314.90°)
OKLaboklab(48.95% 0.1172 -0.1523)
OKLCHoklch(48.95% 0.192 307.6)
XYZxyz(17.8664, 10.1062, 43.1203)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34B2 #68B234
analogous
#3F34B2 #7E34B2 #B234A7
triadic
#7E34B2 #B27E34 #34B27E
tetradic
#7E34B2 #B23F34 #68B234 #34A7B2
square
#7E34B2 #B23F34 #68B234 #34A7B2
split-complementary
#7E34B2 #A7B234 #34B23F
monochromatic
#3B1853 #5C2683 #7E34B2 #9C56CE #B885DB

Accessibility & contrast

On white

6.95
#7E34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7E34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E34B2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E34B2#FFFFFF#000000##FFFFFF
##7E34B21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0F5AAF
Tritanopia (blue-blind)
#76516F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e34b2;
/* rgb */ color: rgb(126, 52, 178);
/* oklch */ color: oklch(48.9% 0.192 307.6);
Tailwind
colors: {
  custom: {
    50: '#a872ca',
    500: '#7e34b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e34b2;
$custom-light: #a872ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34b2",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 275.238,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4895,
    "c": 0.1922,
    "h": 307.6
  },
  "luminance": 0.10106
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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