#7E39C6#7E39C6

#7E39C6 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.207 H 301.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7E39C6
RGBrgb(126, 57, 198)
HSLhsl(269, 55%, 50%)
HSVhsv(269, 71%, 78%)
CMYKcmyk(36.4%, 71.2%, 0%, 22.4%)
CIE-LABlab(40.31, 55.95, -61.76)
CIE-LCHlch(40.31, 83.34, 312.17°)
OKLaboklab(51.03% 0.1089 -0.176)
OKLCHoklch(51.03% 0.207 301.7)
XYZxyz(20.2579, 11.4390, 54.5558)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39C6 #81C639
analogous
#393AC6 #7E39C6 #C539C6
triadic
#7E39C6 #C67E39 #39C67E
tetradic
#7E39C6 #C6393A #81C639 #39C6C5
square
#7E39C6 #C6393A #81C639 #39C6C5
split-complementary
#7E39C6 #C6C539 #3AC639
monochromatic
#421E67 #602B96 #7E39C6 #9D69D4 #BC98E1

Accessibility & contrast

On white

6.39
#7E39C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7E39C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39C6
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39C6#FFFFFF#000000##FFFFFF
##7E39C61.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#6F5B7C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e39c6;
/* rgb */ color: rgb(126, 57, 198);
/* oklch */ color: oklch(51.0% 0.207 301.7);
Tailwind
colors: {
  custom: {
    50: '#a975d8',
    500: '#7e39c6',
    950: '#000000',
  },
}
SCSS
$custom: #7e39c6;
$custom-light: #a975d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39c6",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 198
  },
  "hsl": {
    "h": 269.362,
    "s": 55.294,
    "l": 50
  },
  "oklch": {
    "l": 0.51033,
    "c": 0.207,
    "h": 301.7
  },
  "luminance": 0.11439
}

Semantic roles & 50–950 ramp

primary
#7E39C6
secondary
#AECD8E
accent
#DF4995
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E39C6

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

Preview Lab → · Contrast checker → · Palette generator →

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