#7E39B8#7E39B8

#7E39B8 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 50.0% C 0.192 H 305.3°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7E39B8
RGBrgb(126, 57, 184)
HSLhsl(273, 53%, 47%)
HSVhsv(273, 69%, 72%)
CMYKcmyk(31.5%, 69%, 0%, 27.8%)
CIE-LABlab(39.28, 52.62, -55.24)
CIE-LCHlch(39.28, 76.29, 313.61°)
OKLaboklab(49.98% 0.1111 -0.1568)
OKLCHoklch(49.98% 0.192 305.3)
XYZxyz(18.7171, 10.8227, 46.4410)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39B8 #73B839
analogous
#3E39B8 #7E39B8 #B839B3
triadic
#7E39B8 #B87E39 #39B87E
tetradic
#7E39B8 #B83E39 #73B839 #39B3B8
square
#7E39B8 #B83E39 #73B839 #39B3B8
split-complementary
#7E39B8 #B3B839 #39B83E
monochromatic
#3E1C5B #5E2B89 #7E39B8 #9C60CE #B98FDC

Accessibility & contrast

On white

6.64
#7E39B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E39B8
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39B8#FFFFFF#000000##FFFFFF
##7E39B81.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#095DB5
Tritanopia (blue-blind)
#745674
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e39b8;
/* rgb */ color: rgb(126, 57, 184);
/* oklch */ color: oklch(50.0% 0.192 305.3);
Tailwind
colors: {
  custom: {
    50: '#a875ce',
    500: '#7e39b8',
    950: '#000000',
  },
}
SCSS
$custom: #7e39b8;
$custom-light: #a875ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39b8",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 272.598,
    "s": 52.697,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49976,
    "c": 0.1922,
    "h": 305.3
  },
  "luminance": 0.10823
}

Semantic roles & 50–950 ramp

primary
#7E39B8
secondary
#A4C786
accent
#DC4C8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E39B8

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

Preview Lab → · Contrast checker → · Palette generator →

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