#7E3DC2#7E3DC2

#7E3DC2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.198 H 302.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7E3DC2
RGBrgb(126, 61, 194)
HSLhsl(269, 52%, 50%)
HSVhsv(269, 69%, 76%)
CMYKcmyk(35.1%, 68.6%, 0%, 23.9%)
CIE-LABlab(40.68, 53.11, -58.83)
CIE-LCHlch(40.68, 79.25, 312.08°)
OKLaboklab(51.21% 0.1055 -0.1674)
OKLCHoklch(51.21% 0.198 302.2)
XYZxyz(20.0082, 11.6681, 52.2265)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3DC2 #81C23D
analogous
#3D3FC2 #7E3DC2 #C03DC2
triadic
#7E3DC2 #C27E3D #3DC27E
tetradic
#7E3DC2 #C23D3F #81C23D #3DC2C0
square
#7E3DC2 #C23D3F #81C23D #3DC2C0
split-complementary
#7E3DC2 #C2C03D #3FC23D
monochromatic
#422065 #602E93 #7E3DC2 #9D6CD1 #BC9ADF

Accessibility & contrast

On white

6.30
#7E3DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E3DC2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3DC2#FFFFFF#000000##FFFFFF
##7E3DC21.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#705C7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3dc2;
/* rgb */ color: rgb(126, 61, 194);
/* oklch */ color: oklch(51.2% 0.198 302.2);
Tailwind
colors: {
  custom: {
    50: '#a977d5',
    500: '#7e3dc2',
    950: '#000000',
  },
}
SCSS
$custom: #7e3dc2;
$custom-light: #a977d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3dc2",
  "rgb": {
    "r": 126,
    "g": 61,
    "b": 194
  },
  "hsl": {
    "h": 269.323,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.51206,
    "c": 0.19788,
    "h": 302.2
  },
  "luminance": 0.11668
}

Semantic roles & 50–950 ramp

primary
#7E3DC2
secondary
#AECB90
accent
#DC4C96
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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