#7E38C4#7E38C4

#7E38C4 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.8% C 0.206 H 302.3°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7E38C4
RGBrgb(126, 56, 196)
HSLhsl(270, 56%, 49%)
HSVhsv(270, 71%, 77%)
CMYKcmyk(35.7%, 71.4%, 0%, 23.1%)
CIE-LABlab(40.00, 55.93, -61.11)
CIE-LCHlch(40.00, 82.84, 312.47°)
OKLaboklab(50.76% 0.1103 -0.1741)
OKLCHoklch(50.76% 0.206 302.3)
XYZxyz(19.9798, 11.2494, 53.3326)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38C4 #7EC438
analogous
#3838C4 #7E38C4 #C438C4
triadic
#7E38C4 #C47E38 #38C47E
tetradic
#7E38C4 #C43838 #7EC438 #38C4C4
square
#7E38C4 #C43838 #7EC438 #38C4C4
split-complementary
#7E38C4 #C4C438 #38C438
monochromatic
#411D65 #5F2A94 #7E38C4 #9D66D3 #BB96E1

Accessibility & contrast

On white

6.46
#7E38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7E38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38C4
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38C4#FFFFFF#000000##FFFFFF
##7E38C41.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#6F5A7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e38c4;
/* rgb */ color: rgb(126, 56, 196);
/* oklch */ color: oklch(50.8% 0.206 302.3);
Tailwind
colors: {
  custom: {
    50: '#a975d7',
    500: '#7e38c4',
    950: '#000000',
  },
}
SCSS
$custom: #7e38c4;
$custom-light: #a975d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38c4",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 270,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50764,
    "c": 0.20606,
    "h": 302.3
  },
  "luminance": 0.11249
}

Semantic roles & 50–950 ramp

primary
#7E38C4
secondary
#ACCC8C
accent
#DF4994
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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