#7E39BD#7E39BD

#7E39BD is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.3% C 0.198 H 304.0°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7E39BD
RGBrgb(126, 57, 189)
HSLhsl(271, 54%, 48%)
HSVhsv(271, 70%, 74%)
CMYKcmyk(33.3%, 69.8%, 0%, 25.9%)
CIE-LABlab(39.64, 53.80, -57.59)
CIE-LCHlch(39.64, 78.81, 313.05°)
OKLaboklab(50.35% 0.1104 -0.1638)
OKLCHoklch(50.35% 0.198 304)
XYZxyz(19.2505, 11.0361, 49.2503)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39BD #78BD39
analogous
#3C39BD #7E39BD #BD39BA
triadic
#7E39BD #BD7E39 #39BD7E
tetradic
#7E39BD #BD3C39 #78BD39 #39BABD
square
#7E39BD #BD3C39 #78BD39 #39BABD
split-complementary
#7E39BD #BABD39 #39BD3C
monochromatic
#3F1D5F #5F2B8E #7E39BD #9C63D0 #BA92DE

Accessibility & contrast

On white

6.55
#7E39BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7E39BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39BD
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39BD#FFFFFF#000000##FFFFFF
##7E39BD1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#725877
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e39bd;
/* rgb */ color: rgb(126, 57, 189);
/* oklch */ color: oklch(50.3% 0.198 304.0);
Tailwind
colors: {
  custom: {
    50: '#a875d2',
    500: '#7e39bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e39bd;
$custom-light: #a875d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39bd",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 189
  },
  "hsl": {
    "h": 271.364,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50347,
    "c": 0.1975,
    "h": 304
  },
  "luminance": 0.11036
}

Semantic roles & 50–950 ramp

primary
#7E39BD
secondary
#A7C989
accent
#DD4B91
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E39BD

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

Preview Lab → · Contrast checker → · Palette generator →

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