#7E3DC3#7E3DC3

#7E3DC3 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.3% C 0.199 H 302.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7E3DC3
RGBrgb(126, 61, 195)
HSLhsl(269, 53%, 50%)
HSVhsv(269, 69%, 76%)
CMYKcmyk(35.4%, 68.7%, 0%, 23.5%)
CIE-LABlab(40.76, 53.35, -59.29)
CIE-LCHlch(40.76, 79.76, 311.98°)
OKLaboklab(51.28% 0.1054 -0.1688)
OKLCHoklch(51.28% 0.199 302)
XYZxyz(20.1209, 11.7132, 52.8200)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3DC3 #82C33D
analogous
#3D3FC3 #7E3DC3 #C13DC3
triadic
#7E3DC3 #C37E3D #3DC37E
tetradic
#7E3DC3 #C33D3F #82C33D #3DC3C1
square
#7E3DC3 #C33D3F #82C33D #3DC3C1
split-complementary
#7E3DC3 #C3C13D #3FC33D
monochromatic
#422066 #602E95 #7E3DC3 #9D6CD1 #BC9AE0

Accessibility & contrast

On white

6.28
#7E3DC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7E3DC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3DC3
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3DC3#FFFFFF#000000##FFFFFF
##7E3DC31.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e3dc3;
/* rgb */ color: rgb(126, 61, 195);
/* oklch */ color: oklch(51.3% 0.199 302.0);
Tailwind
colors: {
  custom: {
    50: '#a977d6',
    500: '#7e3dc3',
    950: '#000000',
  },
}
SCSS
$custom: #7e3dc3;
$custom-light: #a977d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3dc3",
  "rgb": {
    "r": 126,
    "g": 61,
    "b": 195
  },
  "hsl": {
    "h": 269.104,
    "s": 52.756,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51281,
    "c": 0.19897,
    "h": 302
  },
  "luminance": 0.11713
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E3DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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