#7E4EB3#7E4EB3

#7E4EB3 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.5% C 0.157 H 303.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7E4EB3
RGBrgb(126, 78, 179)
HSLhsl(269, 40%, 50%)
HSVhsv(269, 56%, 70%)
CMYKcmyk(29.6%, 56.4%, 0%, 29.8%)
CIE-LABlab(42.97, 40.52, -46.36)
CIE-LCHlch(42.97, 61.57, 311.16°)
OKLaboklab(52.55% 0.0862 -0.1308)
OKLCHoklch(52.55% 0.157 303.4)
XYZxyz(19.4634, 13.1391, 44.1498)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EB3 #83B34E
analogous
#4E50B3 #7E4EB3 #B14EB3
triadic
#7E4EB3 #B37E4E #4EB37E
tetradic
#7E4EB3 #B34E50 #83B34E #4EB3B1
square
#7E4EB3 #B34E50 #83B34E #4EB3B1
split-complementary
#7E4EB3 #B3B14E #50B34E
monochromatic
#42285E #603B89 #7E4EB3 #9D79C5 #BCA4D8

Accessibility & contrast

On white

5.79
#7E4EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7E4EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EB3
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EB3#FFFFFF#000000##FFFFFF
##7E4EB31.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B6
Deuteranopia (green-blind)
#3865B1
Tritanopia (blue-blind)
#746279
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4eb3;
/* rgb */ color: rgb(126, 78, 179);
/* oklch */ color: oklch(52.5% 0.157 303.4);
Tailwind
colors: {
  custom: {
    50: '#a681ca',
    500: '#7e4eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7e4eb3;
$custom-light: #a681ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4eb3",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 268.515,
    "s": 39.921,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52548,
    "c": 0.15667,
    "h": 303.4
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

primary
#7E4EB3
secondary
#B0C598
accent
#D05897
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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