#7E39BA#7E39BA

#7E39BA is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.1% C 0.194 H 304.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7E39BA
RGBrgb(126, 57, 186)
HSLhsl(272, 53%, 48%)
HSVhsv(272, 69%, 73%)
CMYKcmyk(32.3%, 69.4%, 0%, 27.1%)
CIE-LABlab(39.42, 53.09, -56.18)
CIE-LCHlch(39.42, 77.30, 313.38°)
OKLaboklab(50.12% 0.1108 -0.1596)
OKLCHoklch(50.12% 0.194 304.8)
XYZxyz(18.9282, 10.9071, 47.5530)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39BA #75BA39
analogous
#3E39BA #7E39BA #BA39B5
triadic
#7E39BA #BA7E39 #39BA7E
tetradic
#7E39BA #BA3E39 #75BA39 #39B5BA
square
#7E39BA #BA3E39 #75BA39 #39B5BA
split-complementary
#7E39BA #B5BA39 #39BA3E
monochromatic
#3F1C5C #5E2B8B #7E39BA #9C61CF #B990DD

Accessibility & contrast

On white

6.60
#7E39BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7E39BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39BA
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39BA#FFFFFF#000000##FFFFFF
##7E39BA1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#735775
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e39ba;
/* rgb */ color: rgb(126, 57, 186);
/* oklch */ color: oklch(50.1% 0.194 304.8);
Tailwind
colors: {
  custom: {
    50: '#a875d0',
    500: '#7e39ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e39ba;
$custom-light: #a875d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39ba",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 272.093,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50123,
    "c": 0.19432,
    "h": 304.8
  },
  "luminance": 0.10907
}

Semantic roles & 50–950 ramp

primary
#7E39BA
secondary
#A5C887
accent
#DC4B8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E39BA

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

Preview Lab → · Contrast checker → · Palette generator →

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