#7E39AC#7E39AC

#7E39AC is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.1% C 0.179 H 308.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7E39AC
RGBrgb(126, 57, 172)
HSLhsl(276, 50%, 45%)
HSVhsv(276, 67%, 67%)
CMYKcmyk(26.7%, 66.9%, 0%, 32.5%)
CIE-LABlab(38.45, 49.83, -49.48)
CIE-LCHlch(38.45, 70.22, 315.20°)
OKLaboklab(49.11% 0.1124 -0.1399)
OKLCHoklch(49.11% 0.179 308.8)
XYZxyz(17.5122, 10.3407, 40.0951)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39AC #67AC39
analogous
#4539AC #7E39AC #AC39A0
triadic
#7E39AC #AC7E39 #39AC7E
tetradic
#7E39AC #AC4539 #67AC39 #39A0AC
square
#7E39AC #AC4539 #67AC39 #39A0AC
split-complementary
#7E39AC #A0AC39 #39AC45
monochromatic
#3B1B50 #5C2A7E #7E39AC #9C5AC8 #B888D8

Accessibility & contrast

On white

6.84
#7E39AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7E39AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39AC
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39AC#FFFFFF#000000##FFFFFF
##7E39AC1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#245BA9
Tritanopia (blue-blind)
#77516E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e39ac;
/* rgb */ color: rgb(126, 57, 172);
/* oklch */ color: oklch(49.1% 0.179 308.8);
Tailwind
colors: {
  custom: {
    50: '#a774c5',
    500: '#7e39ac',
    950: '#000000',
  },
}
SCSS
$custom: #7e39ac;
$custom-light: #a774c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39ac",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 172
  },
  "hsl": {
    "h": 276,
    "s": 50.218,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49115,
    "c": 0.17948,
    "h": 308.8
  },
  "luminance": 0.1034
}

Semantic roles & 50–950 ramp

primary
#7E39AC
secondary
#9AC27F
accent
#DA4E86
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E39AC

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

Preview Lab → · Contrast checker → · Palette generator →

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