#7E39B1#7E39B1

#7E39B1 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.5% C 0.185 H 307.3°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7E39B1
RGBrgb(126, 57, 177)
HSLhsl(275, 51%, 46%)
HSVhsv(275, 68%, 69%)
CMYKcmyk(28.8%, 67.8%, 0%, 30.6%)
CIE-LABlab(38.79, 50.98, -51.90)
CIE-LCHlch(38.79, 72.75, 314.49°)
OKLaboklab(49.47% 0.1119 -0.147)
OKLCHoklch(49.47% 0.185 307.3)
XYZxyz(18.0015, 10.5364, 42.6719)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39B1 #6CB139
analogous
#4239B1 #7E39B1 #B139A8
triadic
#7E39B1 #B17E39 #39B17E
tetradic
#7E39B1 #B14239 #6CB139 #39A8B1
square
#7E39B1 #B14239 #6CB139 #39A8B1
split-complementary
#7E39B1 #A8B139 #39B142
monochromatic
#3C1B54 #5D2A83 #7E39B1 #9C5DCB #B88BDA

Accessibility & contrast

On white

6.76
#7E39B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7E39B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39B1
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39B1#FFFFFF#000000##FFFFFF
##7E39B11.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#1C5CAE
Tritanopia (blue-blind)
#765370
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e39b1;
/* rgb */ color: rgb(126, 57, 177);
/* oklch */ color: oklch(49.5% 0.185 307.3);
Tailwind
colors: {
  custom: {
    50: '#a874c9',
    500: '#7e39b1',
    950: '#000000',
  },
}
SCSS
$custom: #7e39b1;
$custom-light: #a874c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39b1",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 274.5,
    "s": 51.282,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49468,
    "c": 0.18478,
    "h": 307.3
  },
  "luminance": 0.10536
}

Semantic roles & 50–950 ramp

primary
#7E39B1
secondary
#9EC482
accent
#DB4D89
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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