#7E39C4#7E39C4

#7E39C4 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.9% C 0.205 H 302.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7E39C4
RGBrgb(126, 57, 196)
HSLhsl(270, 55%, 50%)
HSVhsv(270, 71%, 77%)
CMYKcmyk(35.7%, 70.9%, 0%, 23.1%)
CIE-LABlab(40.16, 55.47, -60.84)
CIE-LCHlch(40.16, 82.34, 312.36°)
OKLaboklab(50.88% 0.1093 -0.1733)
OKLCHoklch(50.88% 0.205 302.2)
XYZxyz(20.0287, 11.3473, 53.3489)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39C4 #7FC439
analogous
#393AC4 #7E39C4 #C439C4
triadic
#7E39C4 #C47E39 #39C47E
tetradic
#7E39C4 #C4393A #7FC439 #39C4C4
square
#7E39C4 #C4393A #7FC439 #39C4C4
split-complementary
#7E39C4 #C4C439 #3AC439
monochromatic
#411D65 #602B95 #7E39C4 #9D67D3 #BB97E1

Accessibility & contrast

On white

6.42
#7E39C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7E39C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39C4
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39C4#FFFFFF#000000##FFFFFF
##7E39C41.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#6F5A7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e39c4;
/* rgb */ color: rgb(126, 57, 196);
/* oklch */ color: oklch(50.9% 0.205 302.2);
Tailwind
colors: {
  custom: {
    50: '#a975d7',
    500: '#7e39c4',
    950: '#000000',
  },
}
SCSS
$custom: #7e39c4;
$custom-light: #a975d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39c4",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 196
  },
  "hsl": {
    "h": 269.784,
    "s": 54.941,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50879,
    "c": 0.20489,
    "h": 302.2
  },
  "luminance": 0.11347
}

Semantic roles & 50–950 ramp

primary
#7E39C4
secondary
#ADCC8D
accent
#DE4A94
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E39C4

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

Preview Lab → · Contrast checker → · Palette generator →

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