#7E38C6#7E38C6

#7E38C6 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.9% C 0.208 H 301.9°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7E38C6
RGBrgb(126, 56, 198)
HSLhsl(270, 56%, 50%)
HSVhsv(270, 72%, 78%)
CMYKcmyk(36.4%, 71.7%, 0%, 22.4%)
CIE-LABlab(40.15, 56.41, -62.03)
CIE-LCHlch(40.15, 83.84, 312.28°)
OKLaboklab(50.92% 0.1099 -0.1768)
OKLCHoklch(50.92% 0.208 301.9)
XYZxyz(20.2090, 11.3411, 54.5395)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38C6 #80C638
analogous
#3839C6 #7E38C6 #C538C6
triadic
#7E38C6 #C67E38 #38C67E
tetradic
#7E38C6 #C63839 #80C638 #38C6C5
square
#7E38C6 #C63839 #80C638 #38C6C5
split-complementary
#7E38C6 #C6C538 #39C638
monochromatic
#411D67 #602B96 #7E38C6 #9D67D4 #BC97E2

Accessibility & contrast

On white

6.43
#7E38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7E38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38C6
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38C6#FFFFFF#000000##FFFFFF
##7E38C61.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#6F5B7C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e38c6;
/* rgb */ color: rgb(126, 56, 198);
/* oklch */ color: oklch(50.9% 0.208 301.9);
Tailwind
colors: {
  custom: {
    50: '#a975d8',
    500: '#7e38c6',
    950: '#000000',
  },
}
SCSS
$custom: #7e38c6;
$custom-light: #a975d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38c6",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 269.577,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50919,
    "c": 0.20816,
    "h": 301.9
  },
  "luminance": 0.11341
}

Semantic roles & 50–950 ramp

primary
#7E38C6
secondary
#ADCD8D
accent
#DF4995
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #7E38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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