#7E38AE#7E38AE

#7E38AE is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.1% C 0.183 H 308.3°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7E38AE
RGBrgb(126, 56, 174)
HSLhsl(276, 51%, 45%)
HSVhsv(276, 68%, 68%)
CMYKcmyk(27.6%, 67.8%, 0%, 31.8%)
CIE-LABlab(38.41, 50.76, -50.73)
CIE-LCHlch(38.41, 71.77, 315.02°)
OKLaboklab(49.13% 0.1134 -0.1436)
OKLCHoklch(49.13% 0.183 308.3)
XYZxyz(17.6568, 10.3202, 41.0980)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38AE #68AE38
analogous
#4338AE #7E38AE #AE38A3
triadic
#7E38AE #AE7E38 #38AE7E
tetradic
#7E38AE #AE4338 #68AE38 #38A3AE
square
#7E38AE #AE4338 #68AE38 #38A3AE
split-complementary
#7E38AE #A3AE38 #38AE43
monochromatic
#3B1A51 #5C2980 #7E38AE #9C59CA #B888D9

Accessibility & contrast

On white

6.85
#7E38AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7E38AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38AE
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38AE#FFFFFF#000000##FFFFFF
##7E38AE1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#205BAB
Tritanopia (blue-blind)
#77516E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e38ae;
/* rgb */ color: rgb(126, 56, 174);
/* oklch */ color: oklch(49.1% 0.183 308.3);
Tailwind
colors: {
  custom: {
    50: '#a774c7',
    500: '#7e38ae',
    950: '#000000',
  },
}
SCSS
$custom: #7e38ae;
$custom-light: #a774c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38ae",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 275.593,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49132,
    "c": 0.18294,
    "h": 308.3
  },
  "luminance": 0.1032
}

Semantic roles & 50–950 ramp

primary
#7E38AE
secondary
#9BC37F
accent
#DB4D87
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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