#7E39D5#7E39D5

#7E39D5 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.2% C 0.223 H 298.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7E39D5
RGBrgb(126, 57, 213)
HSLhsl(267, 65%, 53%)
HSVhsv(267, 73%, 84%)
CMYKcmyk(40.8%, 73.2%, 0%, 16.5%)
CIE-LABlab(41.48, 59.59, -68.54)
CIE-LCHlch(41.48, 90.82, 311.00°)
OKLaboklab(52.22% 0.1059 -0.1959)
OKLCHoklch(52.22% 0.223 298.4)
XYZxyz(22.0745, 12.1656, 64.1231)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39D5 #90D539
analogous
#3942D5 #7E39D5 #CC39D5
triadic
#7E39D5 #D57E39 #39D57E
tetradic
#7E39D5 #D53942 #90D539 #39D5CC
square
#7E39D5 #D53942 #90D539 #39D5CC
split-complementary
#7E39D5 #D5CC39 #42D539
monochromatic
#441A7A #6125AC #7E39D5 #9F6BE0 #C09EEA

Accessibility & contrast

On white

6.12
#7E39D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7E39D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39D5
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39D5#FFFFFF#000000##FFFFFF
##7E39D51.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#0060D2
Tritanopia (blue-blind)
#696184
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e39d5;
/* rgb */ color: rgb(126, 57, 213);
/* oklch */ color: oklch(52.2% 0.223 298.4);
Tailwind
colors: {
  custom: {
    50: '#ab76e3',
    500: '#7e39d5',
    950: '#000000',
  },
}
SCSS
$custom: #7e39d5;
$custom-light: #ab76e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39d5",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 213
  },
  "hsl": {
    "h": 266.538,
    "s": 65,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52224,
    "c": 0.22274,
    "h": 298.4
  },
  "luminance": 0.12166
}

Semantic roles & 50–950 ramp

primary
#7E39D5
secondary
#B9D793
accent
#E8409E
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7E39D5

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

Preview Lab → · Contrast checker → · Palette generator →

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