#7E4BB7#7E4BB7

#7E4BB7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.166 H 302.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7E4BB7
RGBrgb(126, 75, 183)
HSLhsl(268, 43%, 51%)
HSVhsv(268, 59%, 72%)
CMYKcmyk(31.1%, 59%, 0%, 28.2%)
CIE-LABlab(42.59, 43.18, -49.31)
CIE-LCHlch(42.59, 65.54, 311.20°)
OKLaboklab(52.35% 0.0901 -0.1395)
OKLCHoklch(52.35% 0.166 302.8)
XYZxyz(19.6656, 12.8867, 46.2419)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BB7 #84B74B
analogous
#4B4EB7 #7E4BB7 #B44BB7
triadic
#7E4BB7 #B77E4B #4BB77E
tetradic
#7E4BB7 #B74B4E #84B74B #4BB7B4
square
#7E4BB7 #B74B4E #84B74B #4BB7B4
split-complementary
#7E4BB7 #B7B44B #4EB74B
monochromatic
#422761 #60388D #7E4BB7 #9D77C8 #BDA2DA

Accessibility & contrast

On white

5.87
#7E4BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7E4BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BB7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BB7#FFFFFF#000000##FFFFFF
##7E4BB71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1764BA
Deuteranopia (green-blind)
#3064B5
Tritanopia (blue-blind)
#73617A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4bb7;
/* rgb */ color: rgb(126, 75, 183);
/* oklch */ color: oklch(52.3% 0.166 302.8);
Tailwind
colors: {
  custom: {
    50: '#a77fcd',
    500: '#7e4bb7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bb7;
$custom-light: #a77fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bb7",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 268.333,
    "s": 42.857,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52348,
    "c": 0.16605,
    "h": 302.8
  },
  "luminance": 0.12887
}

Semantic roles & 50–950 ramp

primary
#7E4BB7
secondary
#B0C797
accent
#D35597
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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