#7E39B9#7E39B9

#7E39B9 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.0% C 0.193 H 305.0°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7E39B9
RGBrgb(126, 57, 185)
HSLhsl(272, 53%, 47%)
HSVhsv(272, 69%, 73%)
CMYKcmyk(31.9%, 69.2%, 0%, 27.5%)
CIE-LABlab(39.35, 52.85, -55.71)
CIE-LCHlch(39.35, 76.79, 313.49°)
OKLaboklab(50.05% 0.111 -0.1582)
OKLCHoklch(50.05% 0.193 305)
XYZxyz(18.8223, 10.8648, 46.9951)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39B9 #74B939
analogous
#3E39B9 #7E39B9 #B939B4
triadic
#7E39B9 #B97E39 #39B97E
tetradic
#7E39B9 #B93E39 #74B939 #39B4B9
square
#7E39B9 #B93E39 #74B939 #39B4B9
split-complementary
#7E39B9 #B4B939 #39B93E
monochromatic
#3E1C5B #5E2B8A #7E39B9 #9C61CE #B990DD

Accessibility & contrast

On white

6.62
#7E39B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7E39B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39B9
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39B9#FFFFFF#000000##FFFFFF
##7E39B91.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#045DB6
Tritanopia (blue-blind)
#735675
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e39b9;
/* rgb */ color: rgb(126, 57, 185);
/* oklch */ color: oklch(50.0% 0.193 305.0);
Tailwind
colors: {
  custom: {
    50: '#a875cf',
    500: '#7e39b9',
    950: '#000000',
  },
}
SCSS
$custom: #7e39b9;
$custom-light: #a875cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39b9",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 272.344,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50049,
    "c": 0.19326,
    "h": 305
  },
  "luminance": 0.10865
}

Semantic roles & 50–950 ramp

primary
#7E39B9
secondary
#A4C886
accent
#DC4B8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E39B9

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

Preview Lab → · Contrast checker → · Palette generator →

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