#7E3CD7#7E3CD7

#7E3CD7 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.222 H 297.6°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7E3CD7
RGBrgb(126, 60, 215)
HSLhsl(266, 66%, 54%)
HSVhsv(266, 72%, 84%)
CMYKcmyk(41.4%, 72.1%, 0%, 15.7%)
CIE-LABlab(42.11, 58.74, -68.65)
CIE-LCHlch(42.11, 90.35, 310.55°)
OKLaboklab(52.72% 0.1028 -0.1963)
OKLCHoklch(52.72% 0.222 297.6)
XYZxyz(22.4826, 12.5732, 65.5192)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3CD7 #95D73C
analogous
#3C48D7 #7E3CD7 #CB3CD7
triadic
#7E3CD7 #D77E3C #3CD77E
tetradic
#7E3CD7 #D73C48 #95D73C #3CD7CB
square
#7E3CD7 #D73C48 #95D73C #3CD7CB
split-complementary
#7E3CD7 #D7CB3C #48D73C
monochromatic
#451A7F #6024B1 #7E3CD7 #A06FE1 #C1A2EC

Accessibility & contrast

On white

5.97
#7E3CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7E3CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3CD7
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3CD7#FFFFFF#000000##FFFFFF
##7E3CD71.005.973.515.97
#FFFFFF5.971.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#0062D4
Tritanopia (blue-blind)
#676386
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e3cd7;
/* rgb */ color: rgb(126, 60, 215);
/* oklch */ color: oklch(52.7% 0.222 297.6);
Tailwind
colors: {
  custom: {
    50: '#ab77e4',
    500: '#7e3cd7',
    950: '#000000',
  },
}
SCSS
$custom: #7e3cd7;
$custom-light: #ab77e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3cd7",
  "rgb": {
    "r": 126,
    "g": 60,
    "b": 215
  },
  "hsl": {
    "h": 265.548,
    "s": 65.957,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52722,
    "c": 0.22158,
    "h": 297.6
  },
  "luminance": 0.12574
}

Semantic roles & 50–950 ramp

primary
#7E3CD7
secondary
#BCD896
accent
#E93FA1
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7E3CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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