#7E39B7#7E39B7

#7E39B7 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.9% C 0.191 H 305.6°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7E39B7
RGBrgb(126, 57, 183)
HSLhsl(273, 53%, 47%)
HSVhsv(273, 69%, 72%)
CMYKcmyk(31.1%, 68.9%, 0%, 28.2%)
CIE-LABlab(39.21, 52.38, -54.76)
CIE-LCHlch(39.21, 75.78, 313.73°)
OKLaboklab(49.9% 0.1112 -0.1554)
OKLCHoklch(49.9% 0.191 305.6)
XYZxyz(18.6127, 10.7809, 45.8909)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39B7 #72B739
analogous
#3F39B7 #7E39B7 #B739B1
triadic
#7E39B7 #B77E39 #39B77E
tetradic
#7E39B7 #B73F39 #72B739 #39B1B7
square
#7E39B7 #B73F39 #72B739 #39B1B7
split-complementary
#7E39B7 #B1B739 #39B73F
monochromatic
#3E1C5A #5E2A88 #7E39B7 #9C60CD #B98EDC

Accessibility & contrast

On white

6.65
#7E39B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7E39B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39B7
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39B7#FFFFFF#000000##FFFFFF
##7E39B71.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#0D5DB4
Tritanopia (blue-blind)
#745574
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e39b7;
/* rgb */ color: rgb(126, 57, 183);
/* oklch */ color: oklch(49.9% 0.191 305.6);
Tailwind
colors: {
  custom: {
    50: '#a875cd',
    500: '#7e39b7',
    950: '#000000',
  },
}
SCSS
$custom: #7e39b7;
$custom-light: #a875cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39b7",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 272.857,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49902,
    "c": 0.19115,
    "h": 305.6
  },
  "luminance": 0.10781
}

Semantic roles & 50–950 ramp

primary
#7E39B7
secondary
#A3C785
accent
#DC4C8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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