#7E38C5#7E38C5

#7E38C5 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.8% C 0.207 H 302.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7E38C5
RGBrgb(126, 56, 197)
HSLhsl(270, 56%, 50%)
HSVhsv(270, 72%, 77%)
CMYKcmyk(36%, 71.6%, 0%, 22.7%)
CIE-LABlab(40.07, 56.17, -61.57)
CIE-LCHlch(40.07, 83.34, 312.37°)
OKLaboklab(50.84% 0.1101 -0.1754)
OKLCHoklch(50.84% 0.207 302.1)
XYZxyz(20.0940, 11.2951, 53.9341)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38C5 #7FC538
analogous
#3839C5 #7E38C5 #C438C5
triadic
#7E38C5 #C57E38 #38C57E
tetradic
#7E38C5 #C53839 #7FC538 #38C5C4
square
#7E38C5 #C53839 #7FC538 #38C5C4
split-complementary
#7E38C5 #C5C438 #39C538
monochromatic
#411D66 #602A95 #7E38C5 #9D67D4 #BB96E1

Accessibility & contrast

On white

6.44
#7E38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7E38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38C5
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38C5#FFFFFF#000000##FFFFFF
##7E38C51.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#6F5A7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e38c5;
/* rgb */ color: rgb(126, 56, 197);
/* oklch */ color: oklch(50.8% 0.207 302.1);
Tailwind
colors: {
  custom: {
    50: '#a975d7',
    500: '#7e38c5',
    950: '#000000',
  },
}
SCSS
$custom: #7e38c5;
$custom-light: #a975d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38c5",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 269.787,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50841,
    "c": 0.20711,
    "h": 302.1
  },
  "luminance": 0.11295
}

Semantic roles & 50–950 ramp

primary
#7E38C5
secondary
#ADCD8C
accent
#DF4994
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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