#7E39C3#7E39C3

#7E39C3 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.8% C 0.204 H 302.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7E39C3
RGBrgb(126, 57, 195)
HSLhsl(270, 55%, 49%)
HSVhsv(270, 71%, 76%)
CMYKcmyk(35.4%, 70.8%, 0%, 23.5%)
CIE-LABlab(40.08, 55.23, -60.38)
CIE-LCHlch(40.08, 81.83, 312.45°)
OKLaboklab(50.8% 0.1094 -0.172)
OKLCHoklch(50.8% 0.204 302.5)
XYZxyz(19.9153, 11.3020, 52.7515)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39C3 #7EC339
analogous
#3939C3 #7E39C3 #C339C3
triadic
#7E39C3 #C37E39 #39C37E
tetradic
#7E39C3 #C33939 #7EC339 #39C3C3
square
#7E39C3 #C33939 #7EC339 #39C3C3
split-complementary
#7E39C3 #C3C339 #39C339
monochromatic
#411D64 #5F2B94 #7E39C3 #9D67D2 #BB96E0

Accessibility & contrast

On white

6.44
#7E39C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7E39C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39C3
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39C3#FFFFFF#000000##FFFFFF
##7E39C31.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC7
Deuteranopia (green-blind)
#005EC0
Tritanopia (blue-blind)
#705A7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e39c3;
/* rgb */ color: rgb(126, 57, 195);
/* oklch */ color: oklch(50.8% 0.204 302.5);
Tailwind
colors: {
  custom: {
    50: '#a975d6',
    500: '#7e39c3',
    950: '#000000',
  },
}
SCSS
$custom: #7e39c3;
$custom-light: #a975d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39c3",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 195
  },
  "hsl": {
    "h": 270,
    "s": 54.762,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50802,
    "c": 0.20384,
    "h": 302.5
  },
  "luminance": 0.11302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E39C3

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

Preview Lab → · Contrast checker → · Palette generator →

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