#7E38C7#7E38C7

#7E38C7 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.209 H 301.6°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7E38C7
RGBrgb(126, 56, 199)
HSLhsl(269, 56%, 50%)
HSVhsv(269, 72%, 78%)
CMYKcmyk(36.7%, 71.9%, 0%, 22%)
CIE-LABlab(40.23, 56.64, -62.48)
CIE-LCHlch(40.23, 84.34, 312.19°)
OKLaboklab(51% 0.1097 -0.1781)
OKLCHoklch(51% 0.209 301.6)
XYZxyz(20.3247, 11.3874, 55.1490)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38C7 #81C738
analogous
#3839C7 #7E38C7 #C638C7
triadic
#7E38C7 #C77E38 #38C77E
tetradic
#7E38C7 #C73839 #81C738 #38C7C6
square
#7E38C7 #C73839 #81C738 #38C7C6
split-complementary
#7E38C7 #C7C638 #39C738
monochromatic
#421D67 #602B97 #7E38C7 #9D68D4 #BC98E2

Accessibility & contrast

On white

6.41
#7E38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7E38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38C7
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38C7#FFFFFF#000000##FFFFFF
##7E38C71.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#6E5B7C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e38c7;
/* rgb */ color: rgb(126, 56, 199);
/* oklch */ color: oklch(51.0% 0.209 301.6);
Tailwind
colors: {
  custom: {
    50: '#a975d9',
    500: '#7e38c7',
    950: '#000000',
  },
}
SCSS
$custom: #7e38c7;
$custom-light: #a975d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38c7",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 269.371,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.50997,
    "c": 0.20921,
    "h": 301.6
  },
  "luminance": 0.11387
}

Semantic roles & 50–950 ramp

primary
#7E38C7
secondary
#AECD8D
accent
#DF4895
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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