#7E38AA#7E38AA

#7E38AA is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.9% C 0.179 H 309.5°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7E38AA
RGBrgb(126, 56, 170)
HSLhsl(277, 50%, 44%)
HSVhsv(277, 67%, 67%)
CMYKcmyk(25.9%, 67.1%, 0%, 33.3%)
CIE-LABlab(38.14, 49.85, -48.78)
CIE-LCHlch(38.14, 69.75, 315.62°)
OKLaboklab(48.85% 0.1137 -0.1379)
OKLCHoklch(48.85% 0.179 309.5)
XYZxyz(17.2726, 10.1666, 39.0748)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38AA #64AA38
analogous
#4538AA #7E38AA #AA389D
triadic
#7E38AA #AA7E38 #38AA7E
tetradic
#7E38AA #AA4538 #64AA38 #389DAA
square
#7E38AA #AA4538 #64AA38 #389DAA
split-complementary
#7E38AA #9DAA38 #38AA45
monochromatic
#3A1A4E #5C297C #7E38AA #9C57C8 #B785D7

Accessibility & contrast

On white

6.92
#7E38AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7E38AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38AA
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38AA#FFFFFF#000000##FFFFFF
##7E38AA1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e38aa;
/* rgb */ color: rgb(126, 56, 170);
/* oklch */ color: oklch(48.9% 0.179 309.5);
Tailwind
colors: {
  custom: {
    50: '#a774c4',
    500: '#7e38aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e38aa;
$custom-light: #a774c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38aa",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 276.842,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48851,
    "c": 0.17873,
    "h": 309.5
  },
  "luminance": 0.10166
}

Semantic roles & 50–950 ramp

primary
#7E38AA
secondary
#97C17D
accent
#DA4E84
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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