#7E3DC6#7E3DC6

#7E3DC6 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.202 H 301.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7E3DC6
RGBrgb(126, 61, 198)
HSLhsl(268, 55%, 51%)
HSVhsv(268, 69%, 78%)
CMYKcmyk(36.4%, 69.2%, 0%, 22.4%)
CIE-LABlab(40.98, 54.08, -60.68)
CIE-LCHlch(40.98, 81.29, 311.71°)
OKLaboklab(51.51% 0.1049 -0.1729)
OKLCHoklch(51.51% 0.202 301.3)
XYZxyz(20.4635, 11.8502, 54.6244)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3DC6 #85C63D
analogous
#3D40C6 #7E3DC6 #C23DC6
triadic
#7E3DC6 #C67E3D #3DC67E
tetradic
#7E3DC6 #C63D40 #85C63D #3DC6C2
square
#7E3DC6 #C63D40 #85C63D #3DC6C2
split-complementary
#7E3DC6 #C6C23D #40C63D
monochromatic
#421F6A #602D99 #7E3DC6 #9D6CD4 #BD9CE2

Accessibility & contrast

On white

6.23
#7E3DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7E3DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3DC6
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3DC6#FFFFFF#000000##FFFFFF
##7E3DC61.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#6E5D7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e3dc6;
/* rgb */ color: rgb(126, 61, 198);
/* oklch */ color: oklch(51.5% 0.202 301.3);
Tailwind
colors: {
  custom: {
    50: '#a977d8',
    500: '#7e3dc6',
    950: '#000000',
  },
}
SCSS
$custom: #7e3dc6;
$custom-light: #a977d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3dc6",
  "rgb": {
    "r": 126,
    "g": 61,
    "b": 198
  },
  "hsl": {
    "h": 268.467,
    "s": 54.582,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51508,
    "c": 0.2022,
    "h": 301.3
  },
  "luminance": 0.1185
}

Semantic roles & 50–950 ramp

primary
#7E3DC6
secondary
#B1CE91
accent
#DE4A98
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E3DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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