#7E3CD4#7E3CD4

#7E3CD4 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.5% C 0.218 H 298.3°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7E3CD4
RGBrgb(126, 60, 212)
HSLhsl(266, 64%, 53%)
HSVhsv(266, 72%, 83%)
CMYKcmyk(40.6%, 71.7%, 0%, 16.9%)
CIE-LABlab(41.88, 57.99, -67.32)
CIE-LCHlch(41.88, 88.85, 310.75°)
OKLaboklab(52.48% 0.1034 -0.1924)
OKLCHoklch(52.48% 0.218 298.3)
XYZxyz(22.1007, 12.4205, 63.5076)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3CD4 #92D43C
analogous
#3C46D4 #7E3CD4 #CA3CD4
triadic
#7E3CD4 #D47E3C #3CD47E
tetradic
#7E3CD4 #D43C46 #92D43C #3CD4CA
square
#7E3CD4 #D43C46 #92D43C #3CD4CA
split-complementary
#7E3CD4 #D4CA3C #46D43C
monochromatic
#451B7B #6126AD #7E3CD4 #9F6EDF #C0A0EA

Accessibility & contrast

On white

6.03
#7E3CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7E3CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3CD4
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3CD4#FFFFFF#000000##FFFFFF
##7E3CD41.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#0061D1
Tritanopia (blue-blind)
#696284
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e3cd4;
/* rgb */ color: rgb(126, 60, 212);
/* oklch */ color: oklch(52.5% 0.218 298.3);
Tailwind
colors: {
  custom: {
    50: '#aa77e2',
    500: '#7e3cd4',
    950: '#000000',
  },
}
SCSS
$custom: #7e3cd4;
$custom-light: #aa77e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3cd4",
  "rgb": {
    "r": 126,
    "g": 60,
    "b": 212
  },
  "hsl": {
    "h": 266.053,
    "s": 63.866,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52481,
    "c": 0.21839,
    "h": 298.3
  },
  "luminance": 0.12421
}

Semantic roles & 50–950 ramp

primary
#7E3CD4
secondary
#BAD795
accent
#E7419F
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110915
muted
#807B84

Preview Lab

Preview with #7E3CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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