#7E3CC7#7E3CC7

#7E3CC7 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.204 H 301.1°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7E3CC7
RGBrgb(126, 60, 199)
HSLhsl(268, 55%, 51%)
HSVhsv(268, 70%, 78%)
CMYKcmyk(36.7%, 69.8%, 0%, 22%)
CIE-LABlab(40.88, 54.80, -61.42)
CIE-LCHlch(40.88, 82.31, 311.74°)
OKLaboklab(51.46% 0.1058 -0.175)
OKLCHoklch(51.46% 0.205 301.1)
XYZxyz(20.5263, 11.7907, 55.2162)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3CC7 #85C73C
analogous
#3C3FC7 #7E3CC7 #C33CC7
triadic
#7E3CC7 #C77E3C #3CC77E
tetradic
#7E3CC7 #C73C3F #85C73C #3CC7C3
square
#7E3CC7 #C73C3F #85C73C #3CC7C3
split-complementary
#7E3CC7 #C7C33C #3FC73C
monochromatic
#421E6A #602C9A #7E3CC7 #9D6CD5 #BD9BE2

Accessibility & contrast

On white

6.25
#7E3CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7E3CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3CC7
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3CC7#FFFFFF#000000##FFFFFF
##7E3CC71.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#0060C4
Tritanopia (blue-blind)
#6E5D7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3cc7;
/* rgb */ color: rgb(126, 60, 199);
/* oklch */ color: oklch(51.5% 0.204 301.1);
Tailwind
colors: {
  custom: {
    50: '#a977d9',
    500: '#7e3cc7',
    950: '#000000',
  },
}
SCSS
$custom: #7e3cc7;
$custom-light: #a977d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3cc7",
  "rgb": {
    "r": 126,
    "g": 60,
    "b": 199
  },
  "hsl": {
    "h": 268.489,
    "s": 55.378,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51463,
    "c": 0.2045,
    "h": 301.1
  },
  "luminance": 0.11791
}

Semantic roles & 50–950 ramp

primary
#7E3CC7
secondary
#B1CE91
accent
#DF4998
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E3CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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