#7E4BB4#7E4BB4

#7E4BB4 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.2% C 0.162 H 303.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7E4BB4
RGBrgb(126, 75, 180)
HSLhsl(269, 41%, 50%)
HSVhsv(269, 58%, 71%)
CMYKcmyk(30%, 58.3%, 0%, 29.4%)
CIE-LABlab(42.40, 42.43, -47.85)
CIE-LCHlch(42.40, 63.95, 311.56°)
OKLaboklab(52.15% 0.0901 -0.1352)
OKLCHoklch(52.15% 0.162 303.7)
XYZxyz(19.3566, 12.7631, 44.6149)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BB4 #81B44B
analogous
#4B4DB4 #7E4BB4 #B24BB4
triadic
#7E4BB4 #B47E4B #4BB47E
tetradic
#7E4BB4 #B44B4D #81B44B #4BB4B2
square
#7E4BB4 #B44B4D #81B44B #4BB4B2
split-complementary
#7E4BB4 #B4B24B #4DB44B
monochromatic
#42275E #603989 #7E4BB4 #9D76C6 #BCA1D8

Accessibility & contrast

On white

5.91
#7E4BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7E4BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BB4
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BB4#FFFFFF#000000##FFFFFF
##7E4BB41.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D63B7
Deuteranopia (green-blind)
#3364B2
Tritanopia (blue-blind)
#746078
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4bb4;
/* rgb */ color: rgb(126, 75, 180);
/* oklch */ color: oklch(52.2% 0.162 303.7);
Tailwind
colors: {
  custom: {
    50: '#a77fcb',
    500: '#7e4bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bb4;
$custom-light: #a77fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bb4",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 180
  },
  "hsl": {
    "h": 269.143,
    "s": 41.176,
    "l": 50
  },
  "oklch": {
    "l": 0.52151,
    "c": 0.16248,
    "h": 303.7
  },
  "luminance": 0.12763
}

Semantic roles & 50–950 ramp

primary
#7E4BB4
secondary
#AEC596
accent
#D15796
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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