#7E39D2#7E39D2

#7E39D2 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.0% C 0.220 H 299.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7E39D2
RGBrgb(126, 57, 210)
HSLhsl(267, 63%, 52%)
HSVhsv(267, 73%, 82%)
CMYKcmyk(40%, 72.9%, 0%, 17.6%)
CIE-LABlab(41.24, 58.86, -67.20)
CIE-LCHlch(41.24, 89.33, 311.21°)
OKLaboklab(51.98% 0.1066 -0.192)
OKLCHoklch(51.98% 0.22 299)
XYZxyz(21.6972, 12.0147, 62.1362)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39D2 #8DD239
analogous
#3940D2 #7E39D2 #CB39D2
triadic
#7E39D2 #D27E39 #39D27E
tetradic
#7E39D2 #D23940 #8DD239 #39D2CB
square
#7E39D2 #D23940 #8DD239 #39D2CB
split-complementary
#7E39D2 #D2CB39 #40D239
monochromatic
#441B76 #6126A8 #7E39D2 #9E6BDD #BF9DE9

Accessibility & contrast

On white

6.17
#7E39D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7E39D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39D2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39D2#FFFFFF#000000##FFFFFF
##7E39D21.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#6A6083
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e39d2;
/* rgb */ color: rgb(126, 57, 210);
/* oklch */ color: oklch(52.0% 0.220 299.0);
Tailwind
colors: {
  custom: {
    50: '#aa76e1',
    500: '#7e39d2',
    950: '#000000',
  },
}
SCSS
$custom: #7e39d2;
$custom-light: #aa76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39d2",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 267.059,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51981,
    "c": 0.2196,
    "h": 299
  },
  "luminance": 0.12015
}

Semantic roles & 50–950 ramp

primary
#7E39D2
secondary
#B7D592
accent
#E6429C
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E39D2

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

Preview Lab → · Contrast checker → · Palette generator →

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