#7E39BB#7E39BB

#7E39BB is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.2% C 0.195 H 304.5°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7E39BB
RGBrgb(126, 57, 187)
HSLhsl(272, 53%, 48%)
HSVhsv(272, 70%, 73%)
CMYKcmyk(32.6%, 69.5%, 0%, 26.7%)
CIE-LABlab(39.50, 53.33, -56.65)
CIE-LCHlch(39.50, 77.80, 313.27°)
OKLaboklab(50.2% 0.1107 -0.161)
OKLCHoklch(50.2% 0.195 304.5)
XYZxyz(19.0349, 10.9498, 48.1148)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39BB #76BB39
analogous
#3D39BB #7E39BB #BB39B7
triadic
#7E39BB #BB7E39 #39BB7E
tetradic
#7E39BB #BB3D39 #76BB39 #39B7BB
square
#7E39BB #BB3D39 #76BB39 #39B7BB
split-complementary
#7E39BB #B7BB39 #39BB3D
monochromatic
#3F1C5D #5E2B8C #7E39BB #9C62CF #BA91DD

Accessibility & contrast

On white

6.58
#7E39BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7E39BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39BB
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39BB#FFFFFF#000000##FFFFFF
##7E39BB1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#735776
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e39bb;
/* rgb */ color: rgb(126, 57, 187);
/* oklch */ color: oklch(50.2% 0.195 304.5);
Tailwind
colors: {
  custom: {
    50: '#a875d0',
    500: '#7e39bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e39bb;
$custom-light: #a875d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39bb",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 271.846,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50198,
    "c": 0.19538,
    "h": 304.5
  },
  "luminance": 0.1095
}

Semantic roles & 50–950 ramp

primary
#7E39BB
secondary
#A6C887
accent
#DD4B8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E39BB

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

Preview Lab → · Contrast checker → · Palette generator →

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