#7E4DB2#7E4DB2

#7E4DB2 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.3% C 0.157 H 303.9°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7E4DB2
RGBrgb(126, 77, 178)
HSLhsl(269, 40%, 50%)
HSVhsv(269, 57%, 70%)
CMYKcmyk(29.2%, 56.7%, 0%, 30.2%)
CIE-LABlab(42.70, 40.83, -46.20)
CIE-LCHlch(42.70, 61.66, 311.47°)
OKLaboklab(52.33% 0.0875 -0.1304)
OKLCHoklch(52.33% 0.157 303.9)
XYZxyz(19.2922, 12.9578, 43.5956)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DB2 #81B24D
analogous
#4D4EB2 #7E4DB2 #B14DB2
triadic
#7E4DB2 #B27E4D #4DB27E
tetradic
#7E4DB2 #B24D4E #81B24D #4DB2B1
square
#7E4DB2 #B24D4E #81B24D #4DB2B1
split-complementary
#7E4DB2 #B2B14D #4EB24D
monochromatic
#42285D #603B87 #7E4DB2 #9D78C4 #BCA2D7

Accessibility & contrast

On white

5.85
#7E4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7E4DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DB2
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DB2#FFFFFF#000000##FFFFFF
##7E4DB21.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B5
Deuteranopia (green-blind)
#3865B0
Tritanopia (blue-blind)
#756178
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4db2;
/* rgb */ color: rgb(126, 77, 178);
/* oklch */ color: oklch(52.3% 0.157 303.9);
Tailwind
colors: {
  custom: {
    50: '#a681c9',
    500: '#7e4db2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4db2;
$custom-light: #a681c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4db2",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 269.109,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.52328,
    "c": 0.15701,
    "h": 303.9
  },
  "luminance": 0.12958
}

Semantic roles & 50–950 ramp

primary
#7E4DB2
secondary
#AEC497
accent
#CF5896
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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