#7E3BC6#7E3BC6

#7E3BC6 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.3% C 0.205 H 301.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7E3BC6
RGBrgb(126, 59, 198)
HSLhsl(269, 55%, 50%)
HSVhsv(269, 70%, 78%)
CMYKcmyk(36.4%, 70.2%, 0%, 22.4%)
CIE-LABlab(40.64, 55.03, -61.23)
CIE-LCHlch(40.64, 82.32, 311.95°)
OKLaboklab(51.27% 0.1069 -0.1745)
OKLCHoklch(51.27% 0.205 301.5)
XYZxyz(20.3587, 11.6407, 54.5894)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BC6 #83C63B
analogous
#3B3DC6 #7E3BC6 #C43BC6
triadic
#7E3BC6 #C67E3B #3BC67E
tetradic
#7E3BC6 #C63B3D #83C63B #3BC6C4
square
#7E3BC6 #C63B3D #83C63B #3BC6C4
split-complementary
#7E3BC6 #C6C43B #3DC63B
monochromatic
#421E68 #602C98 #7E3BC6 #9D6AD4 #BC9AE2

Accessibility & contrast

On white

6.31
#7E3BC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7E3BC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BC6
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BC6#FFFFFF#000000##FFFFFF
##7E3BC61.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCA
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#6F5C7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3bc6;
/* rgb */ color: rgb(126, 59, 198);
/* oklch */ color: oklch(51.3% 0.205 301.5);
Tailwind
colors: {
  custom: {
    50: '#a976d8',
    500: '#7e3bc6',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bc6;
$custom-light: #a976d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bc6",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 198
  },
  "hsl": {
    "h": 268.921,
    "s": 54.941,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51267,
    "c": 0.20464,
    "h": 301.5
  },
  "luminance": 0.11641
}

Semantic roles & 50–950 ramp

primary
#7E3BC6
secondary
#B0CD8F
accent
#DE4A97
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E3BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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