#7E4BB5#7E4BB5

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

Color values

HEX#7E4BB5
RGBrgb(126, 75, 181)
HSLhsl(269, 42%, 50%)
HSVhsv(269, 59%, 71%)
CMYKcmyk(30.4%, 58.6%, 0%, 29%)
CIE-LABlab(42.47, 42.68, -48.34)
CIE-LCHlch(42.47, 64.48, 311.44°)
OKLaboklab(52.22% 0.0901 -0.1366)
OKLCHoklch(52.22% 0.164 303.4)
XYZxyz(19.4589, 12.8040, 45.1534)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BB5 #82B54B
analogous
#4B4DB5 #7E4BB5 #B34BB5
triadic
#7E4BB5 #B57E4B #4BB57E
tetradic
#7E4BB5 #B54B4D #82B54B #4BB5B3
square
#7E4BB5 #B54B4D #82B54B #4BB5B3
split-complementary
#7E4BB5 #B5B34B #4DB54B
monochromatic
#42275F #60398A #7E4BB5 #9D76C7 #BCA2D9

Accessibility & contrast

On white

5.90
#7E4BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7E4BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BB5
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BB5#FFFFFF#000000##FFFFFF
##7E4BB51.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B63B8
Deuteranopia (green-blind)
#3264B3
Tritanopia (blue-blind)
#746079
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4bb5;
/* rgb */ color: rgb(126, 75, 181);
/* oklch */ color: oklch(52.2% 0.164 303.4);
Tailwind
colors: {
  custom: {
    50: '#a77fcc',
    500: '#7e4bb5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bb5;
$custom-light: #a77fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bb5",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 268.868,
    "s": 41.732,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52216,
    "c": 0.16367,
    "h": 303.4
  },
  "luminance": 0.12804
}

Semantic roles & 50–950 ramp

primary
#7E4BB5
secondary
#AFC696
accent
#D25696
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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