#7E39C5#7E39C5

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

Color values

HEX#7E39C5
RGBrgb(126, 57, 197)
HSLhsl(270, 55%, 50%)
HSVhsv(270, 71%, 77%)
CMYKcmyk(36%, 71.1%, 0%, 22.7%)
CIE-LABlab(40.23, 55.71, -61.30)
CIE-LCHlch(40.23, 82.84, 312.26°)
OKLaboklab(50.96% 0.1091 -0.1747)
OKLCHoklch(50.96% 0.206 302)
XYZxyz(20.1429, 11.3930, 53.9504)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39C5 #80C539
analogous
#393AC5 #7E39C5 #C439C5
triadic
#7E39C5 #C57E39 #39C57E
tetradic
#7E39C5 #C5393A #80C539 #39C5C4
square
#7E39C5 #C5393A #80C539 #39C5C4
split-complementary
#7E39C5 #C5C439 #3AC539
monochromatic
#411E66 #602B96 #7E39C5 #9D68D3 #BC97E1

Accessibility & contrast

On white

6.41
#7E39C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7E39C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39C5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39C5#FFFFFF#000000##FFFFFF
##7E39C51.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#6F5B7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e39c5;
/* rgb */ color: rgb(126, 57, 197);
/* oklch */ color: oklch(51.0% 0.206 302.0);
Tailwind
colors: {
  custom: {
    50: '#a975d7',
    500: '#7e39c5',
    950: '#000000',
  },
}
SCSS
$custom: #7e39c5;
$custom-light: #a975d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39c5",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 197
  },
  "hsl": {
    "h": 269.571,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50956,
    "c": 0.20595,
    "h": 302
  },
  "luminance": 0.11393
}

Semantic roles & 50–950 ramp

primary
#7E39C5
secondary
#ADCD8D
accent
#DE4995
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E39C5

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

Preview Lab → · Contrast checker → · Palette generator →

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