#7E3FC4#7E3FC4

#7E3FC4 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.198 H 301.5°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7E3FC4
RGBrgb(126, 63, 196)
HSLhsl(268, 53%, 51%)
HSVhsv(268, 68%, 77%)
CMYKcmyk(35.7%, 67.9%, 0%, 23.1%)
CIE-LABlab(41.18, 52.63, -59.19)
CIE-LCHlch(41.18, 79.20, 311.64°)
OKLaboklab(51.61% 0.1031 -0.1685)
OKLCHoklch(51.61% 0.198 301.5)
XYZxyz(20.3431, 11.9761, 53.4537)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3FC4 #85C43F
analogous
#3F42C4 #7E3FC4 #C03FC4
triadic
#7E3FC4 #C47E3F #3FC47E
tetradic
#7E3FC4 #C43F42 #85C43F #3FC4C0
square
#7E3FC4 #C43F42 #85C43F #3FC4C0
split-complementary
#7E3FC4 #C4C03F #42C43F
monochromatic
#422068 #602E97 #7E3FC4 #9D6ED2 #BD9DE1

Accessibility & contrast

On white

6.19
#7E3FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7E3FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3FC4
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3FC4#FFFFFF#000000##FFFFFF
##7E3FC41.006.193.406.19
#FFFFFF6.191.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#6F5E7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e3fc4;
/* rgb */ color: rgb(126, 63, 196);
/* oklch */ color: oklch(51.6% 0.198 301.5);
Tailwind
colors: {
  custom: {
    50: '#a978d7',
    500: '#7e3fc4',
    950: '#000000',
  },
}
SCSS
$custom: #7e3fc4;
$custom-light: #a978d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3fc4",
  "rgb": {
    "r": 126,
    "g": 63,
    "b": 196
  },
  "hsl": {
    "h": 268.421,
    "s": 52.988,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51605,
    "c": 0.19754,
    "h": 301.5
  },
  "luminance": 0.11976
}

Semantic roles & 50–950 ramp

primary
#7E3FC4
secondary
#B1CD92
accent
#DC4B98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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