#7E39CC#7E39CC

#7E39CC is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.213 H 300.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7E39CC
RGBrgb(126, 57, 204)
HSLhsl(268, 59%, 51%)
HSVhsv(268, 72%, 80%)
CMYKcmyk(38.2%, 72.1%, 0%, 20%)
CIE-LABlab(40.77, 57.40, -64.50)
CIE-LCHlch(40.77, 86.34, 311.67°)
OKLaboklab(51.5% 0.1078 -0.1841)
OKLCHoklch(51.5% 0.213 300.4)
XYZxyz(20.9637, 11.7213, 58.2730)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39CC #87CC39
analogous
#393DCC #7E39CC #C739CC
triadic
#7E39CC #CC7E39 #39CC7E
tetradic
#7E39CC #CC393D #87CC39 #39CCC7
square
#7E39CC #CC393D #87CC39 #39CCC7
split-complementary
#7E39CC #CCC739 #3DCC39
monochromatic
#431C6E #60299F #7E39CC #9E6AD9 #BD9AE5

Accessibility & contrast

On white

6.28
#7E39CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7E39CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39CC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39CC#FFFFFF#000000##FFFFFF
##7E39CC1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#6C5E7F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e39cc;
/* rgb */ color: rgb(126, 57, 204);
/* oklch */ color: oklch(51.5% 0.213 300.4);
Tailwind
colors: {
  custom: {
    50: '#aa75dd',
    500: '#7e39cc',
    950: '#000000',
  },
}
SCSS
$custom: #7e39cc;
$custom-light: #aa75dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39cc",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 268.163,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51503,
    "c": 0.21331,
    "h": 300.4
  },
  "luminance": 0.11722
}

Semantic roles & 50–950 ramp

primary
#7E39CC
secondary
#B2D190
accent
#E24699
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E39CC

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

Preview Lab → · Contrast checker → · Palette generator →

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