#7E4BB3#7E4BB3

#7E4BB3 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.161 H 303.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7E4BB3
RGBrgb(126, 75, 179)
HSLhsl(269, 41%, 50%)
HSVhsv(269, 58%, 70%)
CMYKcmyk(29.6%, 58.1%, 0%, 29.8%)
CIE-LABlab(42.34, 42.18, -47.36)
CIE-LCHlch(42.34, 63.42, 311.69°)
OKLaboklab(52.09% 0.0901 -0.1338)
OKLCHoklch(52.09% 0.161 303.9)
XYZxyz(19.2551, 12.7225, 44.0804)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BB3 #80B34B
analogous
#4B4CB3 #7E4BB3 #B24BB3
triadic
#7E4BB3 #B37E4B #4BB37E
tetradic
#7E4BB3 #B34B4C #80B34B #4BB3B2
square
#7E4BB3 #B34B4C #80B34B #4BB3B2
split-complementary
#7E4BB3 #B3B24B #4CB34B
monochromatic
#41275D #603988 #7E4BB3 #9D76C5 #BCA1D8

Accessibility & contrast

On white

5.92
#7E4BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7E4BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BB3
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BB3#FFFFFF#000000##FFFFFF
##7E4BB31.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F63B6
Deuteranopia (green-blind)
#3464B1
Tritanopia (blue-blind)
#745F78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4bb3;
/* rgb */ color: rgb(126, 75, 179);
/* oklch */ color: oklch(52.1% 0.161 303.9);
Tailwind
colors: {
  custom: {
    50: '#a77fca',
    500: '#7e4bb3',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bb3;
$custom-light: #a77fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bb3",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 179
  },
  "hsl": {
    "h": 269.423,
    "s": 40.945,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52085,
    "c": 0.16128,
    "h": 303.9
  },
  "luminance": 0.12722
}

Semantic roles & 50–950 ramp

primary
#7E4BB3
secondary
#ADC495
accent
#D15795
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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