#7E38AC#7E38AC

#7E38AC is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.0% C 0.181 H 308.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#7E38AC
RGBrgb(126, 56, 172)
HSLhsl(276, 51%, 45%)
HSVhsv(276, 67%, 67%)
CMYKcmyk(26.7%, 67.4%, 0%, 32.5%)
CIE-LABlab(38.27, 50.31, -49.76)
CIE-LCHlch(38.27, 70.76, 315.31°)
OKLaboklab(48.99% 0.1136 -0.1407)
OKLCHoklch(48.99% 0.181 308.9)
XYZxyz(17.4633, 10.2428, 40.0788)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38AC #66AC38
analogous
#4438AC #7E38AC #AC38A0
triadic
#7E38AC #AC7E38 #38AC7E
tetradic
#7E38AC #AC4438 #66AC38 #38A0AC
square
#7E38AC #AC4438 #66AC38 #38A0AC
split-complementary
#7E38AC #A0AC38 #38AC44
monochromatic
#3A1A50 #5C297E #7E38AC #9C58C9 #B887D8

Accessibility & contrast

On white

6.89
#7E38AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E38AC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38AC#FFFFFF#000000##FFFFFF
##7E38AC1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#235BA9
Tritanopia (blue-blind)
#77516D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e38ac;
/* rgb */ color: rgb(126, 56, 172);
/* oklch */ color: oklch(49.0% 0.181 308.9);
Tailwind
colors: {
  custom: {
    50: '#a774c5',
    500: '#7e38ac',
    950: '#000000',
  },
}
SCSS
$custom: #7e38ac;
$custom-light: #a774c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38ac",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 276.207,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48991,
    "c": 0.18083,
    "h": 308.9
  },
  "luminance": 0.10243
}

Semantic roles & 50–950 ramp

primary
#7E38AC
secondary
#99C27E
accent
#DA4D85
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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