#7E39C0#7E39C0

#7E39C0 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.6% C 0.201 H 303.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#7E39C0
RGBrgb(126, 57, 192)
HSLhsl(271, 54%, 49%)
HSVhsv(271, 70%, 75%)
CMYKcmyk(34.4%, 70.3%, 0%, 24.7%)
CIE-LABlab(39.86, 54.51, -58.99)
CIE-LCHlch(39.86, 80.32, 312.74°)
OKLaboklab(50.57% 0.1099 -0.1679)
OKLCHoklch(50.57% 0.201 303.2)
XYZxyz(19.5795, 11.1677, 50.9830)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39C0 #7BC039
analogous
#3B39C0 #7E39C0 #C039BF
triadic
#7E39C0 #C07E39 #39C07E
tetradic
#7E39C0 #C03B39 #7BC039 #39BFC0
square
#7E39C0 #C03B39 #7BC039 #39BFC0
split-complementary
#7E39C0 #BFC039 #39C03B
monochromatic
#401D62 #5F2B91 #7E39C0 #9C65D1 #BB94DF

Accessibility & contrast

On white

6.49
#7E39C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7E39C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39C0
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39C0#FFFFFF#000000##FFFFFF
##7E39C01.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC4
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#715978
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e39c0;
/* rgb */ color: rgb(126, 57, 192);
/* oklch */ color: oklch(50.6% 0.201 303.2);
Tailwind
colors: {
  custom: {
    50: '#a975d4',
    500: '#7e39c0',
    950: '#000000',
  },
}
SCSS
$custom: #7e39c0;
$custom-light: #a975d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39c0",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 192
  },
  "hsl": {
    "h": 270.667,
    "s": 54.217,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50573,
    "c": 0.20067,
    "h": 303.2
  },
  "luminance": 0.11168
}

Semantic roles & 50–950 ramp

primary
#7E39C0
secondary
#AACB8A
accent
#DE4A92
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E39C0

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

Preview Lab → · Contrast checker → · Palette generator →

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