#7E39AA#7E39AA

#7E39AA is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.0% C 0.177 H 309.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7E39AA
RGBrgb(126, 57, 170)
HSLhsl(277, 50%, 45%)
HSVhsv(277, 66%, 67%)
CMYKcmyk(25.9%, 66.5%, 0%, 33.3%)
CIE-LABlab(38.31, 49.37, -48.50)
CIE-LCHlch(38.31, 69.21, 315.51°)
OKLaboklab(48.98% 0.1126 -0.1371)
OKLCHoklch(48.98% 0.177 309.4)
XYZxyz(17.3216, 10.2645, 39.0912)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E39AA #65AA39
analogous
#4539AA #7E39AA #AA399E
triadic
#7E39AA #AA7E39 #39AA7E
tetradic
#7E39AA #AA4539 #65AA39 #399EAA
square
#7E39AA #AA4539 #65AA39 #399EAA
split-complementary
#7E39AA #9EAA39 #39AA45
monochromatic
#3A1A4E #5C2A7C #7E39AA #9C59C7 #B887D7

Accessibility & contrast

On white

6.88
#7E39AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7E39AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E39AA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E39AA#FFFFFF#000000##FFFFFF
##7E39AA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#275BA7
Tritanopia (blue-blind)
#78506C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e39aa;
/* rgb */ color: rgb(126, 57, 170);
/* oklch */ color: oklch(49.0% 0.177 309.4);
Tailwind
colors: {
  custom: {
    50: '#a774c4',
    500: '#7e39aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e39aa;
$custom-light: #a774c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e39aa",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 276.637,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48975,
    "c": 0.17736,
    "h": 309.4
  },
  "luminance": 0.10264
}

Semantic roles & 50–950 ramp

primary
#7E39AA
secondary
#98C17E
accent
#D94E85
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E39AA

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

Preview Lab → · Contrast checker → · Palette generator →

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